From 28cccd7574b7766dcc65f4a96b3e5c10d9f9aae0 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Tue, 11 Apr 2017 15:10:24 -0400 Subject: [PATCH] one less pylint exception --- .pylintrc | 1 - build/release_on_tag.py | 2 +- lbrynet/lbrynet_daemon/Daemon.py | 2 +- lbrynet/winhelpers/knownpaths.py | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.pylintrc b/.pylintrc index 760cc5fb1..fed2983f9 100644 --- a/.pylintrc +++ b/.pylintrc @@ -89,7 +89,6 @@ disable= no-init, no-member, no-self-use, - old-style-class, pointless-string-statement, protected-access, redefined-builtin, diff --git a/build/release_on_tag.py b/build/release_on_tag.py index fa8537f8d..d1585c2d6 100644 --- a/build/release_on_tag.py +++ b/build/release_on_tag.py @@ -58,7 +58,7 @@ def upload_asset(release, asset_to_upload, token): count = 0 while count < 10: try: - return _upload_asset(release, asset_to_upload, token, _requests_uploader) + return _upload_asset(release, asset_to_upload, token, _curl_uploader) except Exception: print 'Failed uploading on attempt {}'.format(count + 1) count += 1 diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index d858c95ba..90f449a6f 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -106,7 +106,7 @@ class IterableContainer(object): return False -class Checker: +class Checker(object): """The looping calls the daemon runs""" INTERNET_CONNECTION = 'internet_connection_checker' VERSION = 'version_checker' diff --git a/lbrynet/winhelpers/knownpaths.py b/lbrynet/winhelpers/knownpaths.py index 04deb4288..3a1e8ddc9 100644 --- a/lbrynet/winhelpers/knownpaths.py +++ b/lbrynet/winhelpers/knownpaths.py @@ -20,7 +20,7 @@ class GUID(ctypes.Structure): # http://msdn.microsoft.com/en-us/library/windows/desktop/dd378457.aspx -class FOLDERID: +class FOLDERID(object): # pylint: disable=bad-whitespace AccountPictures = UUID('{008ca0b1-55b4-4c56-b8a8-4de4b299d3be}') AdminTools = UUID('{724EF170-A42D-4FEF-9F26-B60E846FBA4F}') @@ -119,7 +119,7 @@ class FOLDERID: # http://msdn.microsoft.com/en-us/library/windows/desktop/bb762188.aspx -class UserHandle: +class UserHandle(object): current = wintypes.HANDLE(0) common = wintypes.HANDLE(-1)