Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 358a92f

Browse files
DirectXMan12frozencemetery
authored andcommitted
Fix flake8 variable warnings
Flake8 (somewhat correctly) was complaining that we had ambiguous variable names (both named simply `l`). This fixes the names to be more descriptive.
1 parent b4707b2 commit 358a92f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎gssapi/raw/cython_converters.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ cdef gss_OID_set c_get_mech_oid_set(object mechs):
2929
cdef 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

‎gssapi/raw/types.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /