From: Evan Broder Date: Tue, 28 Jul 2009 00:44:12 +0000 (-0700) Subject: Use isinstance(..., basestring) instead of (unicode, str). X-Git-Tag: 0.1.0~18 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/commitdiff_plain/bd18e95f388ef4e4963ecf0773d5d37f7140ecae Use isinstance(..., basestring) instead of (unicode, str). Signed-off-by: Evan Broder --- 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)