summaryrefslogtreecommitdiffstats
path: root/Lib/pickletools.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-10-16 18:12:55 (GMT)
committerGuido van Rossum <guido@python.org>2007-10-16 18:12:55 (GMT)
commit3172c5d263eeffff1e89d03d79be3ccc1d60fbde (patch)
treea35e103b36b684c4682ded57236199d6a0ecee4b /Lib/pickletools.py
parent60d241f135f10312f5a638846659d7e471f6cac9 (diff)
downloadcpython-3172c5d263eeffff1e89d03d79be3ccc1d60fbde.zip
cpython-3172c5d263eeffff1e89d03d79be3ccc1d60fbde.tar.gz
cpython-3172c5d263eeffff1e89d03d79be3ccc1d60fbde.tar.bz2
Patch# 1258 by Christian Heimes: kill basestring.
I like this because it makes the code shorter! :-)
Diffstat (limited to 'Lib/pickletools.py')
-rw-r--r--Lib/pickletools.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 6ec3ac2..6b0fca7 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -701,7 +701,7 @@ class StackObject(object):
)
def __init__(self, name, obtype, doc):
- assert isinstance(name, basestring)
+ assert isinstance(name, str)
self.name = name
assert isinstance(obtype, type) or isinstance(obtype, tuple)
@@ -710,7 +710,7 @@ class StackObject(object):
assert isinstance(contained, type)
self.obtype = obtype
- assert isinstance(doc, basestring)
+ assert isinstance(doc, str)
self.doc = doc
def __repr__(self):
@@ -846,10 +846,10 @@ class OpcodeInfo(object):
def __init__(self, name, code, arg,
stack_before, stack_after, proto, doc):
- assert isinstance(name, basestring)
+ assert isinstance(name, str)
self.name = name
- assert isinstance(code, basestring)
+ assert isinstance(code, str)
assert len(code) == 1
self.code = code
@@ -869,7 +869,7 @@ class OpcodeInfo(object):
assert isinstance(proto, int) and 0 <= proto <= 2
self.proto = proto
- assert isinstance(doc, basestring)
+ assert isinstance(doc, str)
self.doc = doc
I = OpcodeInfo