Fix a couple of import statements.

This commit is contained in:
Fred Drake 2002-06-22 02:14:49 +00:00
parent 3951e91c08
commit d5b900cf13
1 changed files with 2 additions and 2 deletions

View File

@ -548,12 +548,12 @@ Programming Recommendations
In Python 2.2, the types module has the StringTypes type defined
for that purpose, e.g.:
from string import StringTypes
from types import StringTypes
if isinstance(obj, StringTypes):
In Python 2.0 and 2.1, you should do:
from string import StringType, UnicodeType
from types import StringType, UnicodeType
if isinstance(obj, StringType) or \
isinstance(obj, UnicodeType) :