projects
/
invirt/packages/python-afs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a589b6a
)
Use isinstance(..., basestring) instead of (unicode, str).
author
Evan Broder
<broder@mit.edu>
Tue, 28 Jul 2009 00:44:12 +0000
(17:44 -0700)
committer
Evan Broder
<broder@mit.edu>
Tue, 28 Jul 2009 00:44:26 +0000
(17:44 -0700)
Signed-off-by: Evan Broder <broder@mit.edu>
afs/_pts.pyx
patch
|
blob
|
history
diff --git
a/afs/_pts.pyx
b/afs/_pts.pyx
index
eb62c08
..
bef7139
100644
(file)
--- a/
afs/_pts.pyx
+++ b/
afs/_pts.pyx
@@
-217,7
+217,7
@@
cdef class PTS:
name if it's a string, or otherwise just converting it to an
integer.
"""
- if isinstance(ident, (str, unicode)):
+ if isinstance(ident, basestring):
return self._NameToId(ident)
else:
return int(ident)