X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/blobdiff_plain/a589b6a78351509326cd03bc790c271de31e7914..bd18e95f388ef4e4963ecf0773d5d37f7140ecae:/afs/_pts.pyx?ds=inline 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)