From bd18e95f388ef4e4963ecf0773d5d37f7140ecae Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Mon, 27 Jul 2009 17:44:12 -0700 Subject: [PATCH] Use isinstance(..., basestring) instead of (unicode, str). Signed-off-by: Evan Broder --- afs/_pts.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.7.9.5