diff options
author | Guido van Rossum <guido@python.org> | 2007-10-16 18:12:55 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-16 18:12:55 +0000 |
commit | 6a32ba353a2706dc5b6813ec51542b889ccbf718 (patch) | |
tree | 971a039a48c3bdba999cdfdff92c86dec297b571 /Lib/decimal.py | |
parent | faf1de5e4d751d4adda57625867a994cc2199612 (diff) | |
download | cpython-6a32ba353a2706dc5b6813ec51542b889ccbf718.tar.gz |
Patch# 1258 by Christian Heimes: kill basestring.
I like this because it makes the code shorter! :-)
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index ffe6e9e505..cdb88bc6e9 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -588,7 +588,7 @@ class Decimal(object): # From a string # REs insist on real strings, so we can too. - if isinstance(value, basestring): + if isinstance(value, str): if _isinfinity(value): self._exp = 'F' self._int = (0,) |