one less pylint exception

This commit is contained in:
Alex Grintsvayg 2017-04-11 15:10:24 -04:00 committed by Alex Grintsvayg
parent 7f7a6a619f
commit 28cccd7574
4 changed files with 4 additions and 5 deletions

View file

@ -89,7 +89,6 @@ disable=
no-init, no-init,
no-member, no-member,
no-self-use, no-self-use,
old-style-class,
pointless-string-statement, pointless-string-statement,
protected-access, protected-access,
redefined-builtin, redefined-builtin,

View file

@ -58,7 +58,7 @@ def upload_asset(release, asset_to_upload, token):
count = 0 count = 0
while count < 10: while count < 10:
try: try:
return _upload_asset(release, asset_to_upload, token, _requests_uploader) return _upload_asset(release, asset_to_upload, token, _curl_uploader)
except Exception: except Exception:
print 'Failed uploading on attempt {}'.format(count + 1) print 'Failed uploading on attempt {}'.format(count + 1)
count += 1 count += 1

View file

@ -106,7 +106,7 @@ class IterableContainer(object):
return False return False
class Checker: class Checker(object):
"""The looping calls the daemon runs""" """The looping calls the daemon runs"""
INTERNET_CONNECTION = 'internet_connection_checker' INTERNET_CONNECTION = 'internet_connection_checker'
VERSION = 'version_checker' VERSION = 'version_checker'

View file

@ -20,7 +20,7 @@ class GUID(ctypes.Structure):
# http://msdn.microsoft.com/en-us/library/windows/desktop/dd378457.aspx # http://msdn.microsoft.com/en-us/library/windows/desktop/dd378457.aspx
class FOLDERID: class FOLDERID(object):
# pylint: disable=bad-whitespace # pylint: disable=bad-whitespace
AccountPictures = UUID('{008ca0b1-55b4-4c56-b8a8-4de4b299d3be}') AccountPictures = UUID('{008ca0b1-55b4-4c56-b8a8-4de4b299d3be}')
AdminTools = UUID('{724EF170-A42D-4FEF-9F26-B60E846FBA4F}') AdminTools = UUID('{724EF170-A42D-4FEF-9F26-B60E846FBA4F}')
@ -119,7 +119,7 @@ class FOLDERID:
# http://msdn.microsoft.com/en-us/library/windows/desktop/bb762188.aspx # http://msdn.microsoft.com/en-us/library/windows/desktop/bb762188.aspx
class UserHandle: class UserHandle(object):
current = wintypes.HANDLE(0) current = wintypes.HANDLE(0)
common = wintypes.HANDLE(-1) common = wintypes.HANDLE(-1)