Skip to content

Fix errors found by a new pycodestyle 2.4 #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gssapi/raw/cython_converters.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ cdef inline object c_c_ttl_to_py(OM_uint32 ttl):
cdef inline bint c_compare_oids(gss_OID a, gss_OID b):
"""Compare two OIDs to see if they are the same."""

return (a.length == b.length and
not memcmp(a.elements, b.elements, a.length))
return (a.length == b.length and not
memcmp(a.elements, b.elements, a.length))
4 changes: 2 additions & 2 deletions gssapi/raw/oids.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ from libc.stdlib cimport free, malloc
from gssapi.raw.cython_types cimport gss_OID

cdef inline bint c_compare_oids(gss_OID a, gss_OID b):
return (a.length == b.length and
not memcmp(a.elements, b.elements, a.length))
return (a.length == b.length and not
memcmp(a.elements, b.elements, a.length))


cdef class OID:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def gssapi_modules(lst):
return res


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