diff options
Diffstat (limited to 'Lib/string.py')
-rw-r--r-- | Lib/string.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/string.py b/Lib/string.py index cd9909e..1d452ed 100644 --- a/Lib/string.py +++ b/Lib/string.py @@ -190,10 +190,6 @@ def rfind(s, *args): _float = float _int = int _long = long -try: - _StringTypes = (str, unicode) -except NameError: - _StringTypes = (str,) # Convert string to float def atof(s): @@ -279,7 +275,7 @@ def zfill(x, width): of the specified width. The string x is never truncated. """ - if not isinstance(x, _StringTypes): + if not isinstance(x, basestring): x = repr(x) return x.zfill(width) |