Skip to content

Commit 3918605

Browse files
stanislavlevinsimo5
authored andcommitted
Fix errors found by a new pycodestyle 2.4
Fixes: #160.
1 parent 330120c commit 3918605

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

gssapi/raw/cython_converters.pxd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ cdef inline object c_c_ttl_to_py(OM_uint32 ttl):
3232
cdef inline bint c_compare_oids(gss_OID a, gss_OID b):
3333
"""Compare two OIDs to see if they are the same."""
3434

35-
return (a.length == b.length and
36-
not memcmp(a.elements, b.elements, a.length))
35+
return (a.length == b.length and not
36+
memcmp(a.elements, b.elements, a.length))

gssapi/raw/oids.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ from libc.stdlib cimport free, malloc
88
from gssapi.raw.cython_types cimport gss_OID
99

1010
cdef inline bint c_compare_oids(gss_OID a, gss_OID b):
11-
return (a.length == b.length and
12-
not memcmp(a.elements, b.elements, a.length))
11+
return (a.length == b.length and not
12+
memcmp(a.elements, b.elements, a.length))
1313

1414

1515
cdef class OID:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def gssapi_modules(lst):
218218
return res
219219

220220

221-
long_desc = re.sub('\.\. role:: \w+\(code\)\s*\n\s*.+', '',
221+
long_desc = re.sub(r'\.\. role:: \w+\(code\)\s*\n\s*.+', '',
222222
re.sub(r':(python|bash|code):', '',
223223
re.sub(r'\.\. code-block:: \w+', '::',
224224
open('README.txt').read())))

0 commit comments

Comments
 (0)