Skip to content

Commit a3b79eb

Browse files
committed
Fix linting errors
1 parent 5089600 commit a3b79eb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

win32ctypes/core/cffi/_authentication.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def make_unicode(password):
6565
code_page = _GetACP()
6666
return password.decode(encoding=str(code_page), errors='strict')
6767

68+
6869
class _FILETIME(object):
6970

7071
def __call__(self):
@@ -112,7 +113,8 @@ def fromdict(cls, credential, flags=0):
112113
setattr(c_credential, key, ffi.NULL)
113114
else:
114115
blob_pointer = ffi.new('wchar_t[]', value)
115-
setattr(c_credential, key, ffi.cast('LPWSTR', blob_pointer))
116+
setattr(
117+
c_credential, key, ffi.cast('LPWSTR', blob_pointer))
116118
values.append(blob_pointer)
117119

118120
# keep values alive until c_credential goes away.

win32ctypes/core/ctypes/_authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def fromdict(cls, credential):
8383
c_credential.Attributes = c_pattribute
8484
c_credential.AttributeCount = count
8585
else:
86-
setattr(c_credentials, key, credential[key])
86+
setattr(c_credential, key, credential[key])
8787
return c_credential
8888

8989

win32ctypes/tests/test_authentication.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from win32ctypes.constants import (
1515
CRED_TYPE_GENERIC, CRED_PERSIST_ENTERPRISE)
1616

17+
1718
class TestCREDENTIAL(unittest.TestCase):
1819

1920
maxDiff = None

0 commit comments

Comments
 (0)