From e08eccba5a65bdf43069119a79956b65c70ea628 Mon Sep 17 00:00:00 2001 From: Virgil Grigoras Date: Mon, 10 Sep 2018 18:21:44 +0200 Subject: [PATCH] Satisfy "Codacy/PR Quality Review" --- cps/helper.py | 2 +- cps/web.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cps/helper.py b/cps/helper.py index 8f72df05..190e8d10 100755 --- a/cps/helper.py +++ b/cps/helper.py @@ -552,7 +552,7 @@ def is_sha1(sha1): if len(sha1) != 40: return False try: - temp = int(sha1, 16) + int(sha1, 16) except ValueError: return False return True diff --git a/cps/web.py b/cps/web.py index 91459545..a5149c24 100644 --- a/cps/web.py +++ b/cps/web.py @@ -1,7 +1,5 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from builtins import OSError - try: from googleapiclient.errors import HttpError except ImportError: