X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/blobdiff_plain/a589b6a78351509326cd03bc790c271de31e7914..137d9e9aa87890dbd343383f636652374dbd72db:/afs/_pts.pyx diff --git a/afs/_pts.pyx b/afs/_pts.pyx index eb62c08..bef7139 100644 --- 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)