Skip to content

Commit 335105d

Browse files
committed
Fix flake8 errors
1 parent 2260e4d commit 335105d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

win32ctypes/core/ctypes/_authentication.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
# LICENSE.txt
77
#
88
import ctypes
9-
from ctypes import POINTER, Structure, c_char, c_char_p, cast, c_wchar_p
9+
from ctypes import POINTER, Structure, c_char_p, cast
1010
from ctypes.wintypes import (
1111
BOOL, DWORD, FILETIME, LPCWSTR, LPWSTR)
1212

13-
from ._common import LPBYTE, _PyBytes_FromStringAndSize, dereference
13+
from ._common import LPBYTE, _PyBytes_FromStringAndSize
1414
from ._util import function_factory, check_false_factory, dlls
1515

1616

@@ -74,14 +74,16 @@ def fromdict(cls, credential):
7474
continue
7575
data = (PCREDENTIAL_ATTRIBUTE * count)()
7676
for index in range(count):
77-
attribute = CREDENTIAL_ATTRIBUTE.fromdict(attributes[index])
77+
attribute = CREDENTIAL_ATTRIBUTE.fromdict(
78+
attributes[index])
7879
data[index] = PCREDENTIAL_ATTRIBUTE(attribute)
7980
c_credentials.Attributes = cast(data, PCREDENTIAL_ATTRIBUTE)
8081
c_credentials.AttributeCount = count
8182
else:
8283
setattr(c_credentials, key, credential[key])
8384
return c_credentials
8485

86+
8587
_data = []
8688
PCREDENTIAL = POINTER(CREDENTIAL)
8789
PPCREDENTIAL = POINTER(PCREDENTIAL)

win32ctypes/tests/test_win32cred.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def _demo_attributes(self):
4444
'Keyword': keyword,
4545
'Value': b'Created by MiniPyWin32Cred test suite', 'Flags': 0}
4646
attribute2 = {
47-
'Keyword': keyword + '12', 'Value': b'Attribute from MiniPyWin32', 'Flags': 0}
47+
'Keyword': keyword + '12',
48+
'Value': b'Attribute from MiniPyWin32', 'Flags': 0}
4849
return (attribute1, attribute2)
4950

5051
def _demo_credentials(self, UserName=u'jone'):

0 commit comments

Comments
 (0)