File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ cdef gss_OID_set c_get_mech_oid_set(object mechs):
2929cdef object c_create_oid_set(gss_OID_set mech_set, bint free = True ):
3030 """ Convert a GSS OID set struct to a set of OIDs"""
3131
32- l = set ()
32+ py_set = set ()
3333 cdef i
3434 for i in range (mech_set.count):
3535 mech_type = OID()
3636 mech_type._copy_from(mech_set.elements[i])
37- l .add(mech_type)
37+ py_set .add(mech_type)
3838
3939 cdef OM_uint32 tmp_min_stat
4040 if free:
4141 gss_release_oid_set(& tmp_min_stat, & mech_set)
4242
43- return l
43+ return py_set
Original file line number Diff line number Diff line change @@ -144,15 +144,15 @@ class GenericFlagSet(collections.MutableSet):
144144
145145 def __len__ (self ):
146146 # get the Hamming weight of _val
147- cdef unsigned int l = 0
147+ cdef unsigned int size = 0
148148 cdef unsigned int i = 1
149149 while i < self .MAX_VAL:
150150 if i & self ._val:
151- l += 1
151+ size += 1
152152
153153 i <<= 1
154154
155- return l
155+ return size
156156
157157 def add (self , flag ):
158158 self ._val |= flag
You can’t perform that action at this time.
0 commit comments