Add the afs._acl output to .gitignore.
[invirt/packages/python-afs.git] / afs / _pts.pyx
index 4a40bd0..bef7139 100644 (file)
@@ -70,7 +70,6 @@ cdef import from "afs/ptuser.h":
 cdef import from "afs/pterror.h":
     enum:
         PRNOENT
-        PRTOOMANY
 
 cdef class PTEntry:
     cdef public afs_int32 flags
@@ -218,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)
@@ -370,8 +369,6 @@ cdef class PTS:
                 members.append(alist.prlist_val[i])
             free(alist.prlist_val)
 
-        if over:
-            code = PRTOOMANY
         pyafs_error(code)
 
         return members
@@ -397,8 +394,6 @@ cdef class PTS:
                 owned.append(alist.prlist_val[i])
             free(alist.prlist_val)
 
-        if over:
-            code = PRTOOMANY
         pyafs_error(code)
 
         return owned