summaryrefslogtreecommitdiff
path: root/Lib/decimal.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-10-16 18:12:55 +0000
committerGuido van Rossum <guido@python.org>2007-10-16 18:12:55 +0000
commit6a32ba353a2706dc5b6813ec51542b889ccbf718 (patch)
tree971a039a48c3bdba999cdfdff92c86dec297b571 /Lib/decimal.py
parentfaf1de5e4d751d4adda57625867a994cc2199612 (diff)
downloadcpython-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.py2
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,)