projects
/
invirt/packages/python-afs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use isinstance(..., basestring) instead of (unicode, str).
[invirt/packages/python-afs.git]
/
afs
/
_pts.pyx
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)