Fix flake8

This commit is contained in:
Oleksii Shevchuk 2018-11-19 09:47:32 +02:00
parent c8744f1ddd
commit b50d423420
2 changed files with 5 additions and 1 deletions

View File

@ -925,7 +925,7 @@ def getSidToken(token_sid):
if token_sid == SID_SYSTEM: if token_sid == SID_SYSTEM:
sids = ListSids() sids = ListSids()
for sid in sids: for sid in sids:
if not 'winlogon' in sid[1].lower(): if 'winlogon' not in sid[1].lower():
continue continue
hToken = gethTokenFromPid(sid[0], exc=False) hToken = gethTokenFromPid(sid[0], exc=False)

View File

@ -18,6 +18,10 @@ ignore = E722,
per-file-ignores = per-file-ignores =
# Because of hack with global import
# Should be fixed somehow
packages/windows/all/winpty.py: F821
# X509 standard names are short # X509 standard names are short
pupylib/PupyCredentials.py: E741 pupylib/PupyCredentials.py: E741