Skip to content

Commit

Permalink
Fixed flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Oct 29, 2017
1 parent 3a87ece commit fe2ed11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions wheel/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def get_path(key):
destination.write(hashbang)

shutil.copyfileobj(source, destination)
except:
except BaseException:
if os.path.exists(temp_filename):
os.unlink(temp_filename)

Expand Down Expand Up @@ -406,7 +406,7 @@ def verify(self, zipfile=None):
if sig:
headers, payload = signatures.verify(sig)
if payload['hash'] != "sha256=" + native(record_digest):
msg = "RECORD.sig claimed RECORD hash {0} != computed hash {1}."
msg = "RECORD.jws claimed RECORD hash {} != computed hash {}."
raise BadWheelFile(msg.format(payload['hash'],
native(record_digest)))

Expand Down
4 changes: 2 additions & 2 deletions wheel/signatures/djbec.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def bit(h, i):

b = 256
q = 2 ** 255 - 19
l = 2 ** 252 + 27742317777372353535851937790883648493
l = 2 ** 252 + 27742317777372353535851937790883648493 # noqa: E741


def H(m):
Expand All @@ -59,7 +59,7 @@ def inv(x):


d = -121665 * inv(121666)
I = expmod(2, (q - 1) // 4, q)
I = expmod(2, (q - 1) // 4, q) # noqa: E741


def xrecover(y):
Expand Down

0 comments on commit fe2ed11

Please sign in to comment.