From f8078a0dd89740da58f80d8ce6870351ded09e6f Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Sun, 28 Oct 2018 18:03:06 +0300 Subject: [PATCH] Fix errors found by a new pycodestyle 2.4 Fixes: #160. --- gssapi/raw/cython_converters.pxd | 4 ++-- gssapi/raw/oids.pyx | 4 ++-- setup.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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())))