diff --git a/gssapi/raw/cython_converters.pxd b/gssapi/raw/cython_converters.pxd index cf92a809..499f21a8 100644 --- a/gssapi/raw/cython_converters.pxd +++ b/gssapi/raw/cython_converters.pxd @@ -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)) diff --git a/gssapi/raw/oids.pyx b/gssapi/raw/oids.pyx index 492ca9ea..2f133da1 100644 --- a/gssapi/raw/oids.pyx +++ b/gssapi/raw/oids.pyx @@ -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: diff --git a/setup.py b/setup.py index 00518f8e..d77cc34a 100755 --- a/setup.py +++ b/setup.py @@ -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())))