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):
29
29
cdef object c_create_oid_set(gss_OID_set mech_set, bint free = True ):
30
30
""" Convert a GSS OID set struct to a set of OIDs"""
31
31
32
- l = set ()
32
+ py_set = set ()
33
33
cdef i
34
34
for i in range (mech_set.count):
35
35
mech_type = OID()
36
36
mech_type._copy_from(mech_set.elements[i])
37
- l .add(mech_type)
37
+ py_set .add(mech_type)
38
38
39
39
cdef OM_uint32 tmp_min_stat
40
40
if free:
41
41
gss_release_oid_set(& tmp_min_stat, & mech_set)
42
42
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):
144
144
145
145
def __len__ (self ):
146
146
# get the Hamming weight of _val
147
- cdef unsigned int l = 0
147
+ cdef unsigned int size = 0
148
148
cdef unsigned int i = 1
149
149
while i < self .MAX_VAL:
150
150
if i & self ._val:
151
- l += 1
151
+ size += 1
152
152
153
153
i <<= 1
154
154
155
- return l
155
+ return size
156
156
157
157
def add (self , flag ):
158
158
self ._val |= flag
You can’t perform that action at this time.
0 commit comments