Skip to content

Commit

Permalink
pep8-remove inline if, and new style class
Browse files Browse the repository at this point in the history
  • Loading branch information
ioparaskev committed Oct 10, 2015
1 parent d7f7022 commit ef35a2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions triplesec/utils.py
Expand Up @@ -52,13 +52,14 @@ class TripleSecFailedAssertion(TripleSecError):

### UTILITIES
def _constant_time_compare(a, b):
if len(a) != len(b): return False
if len(a) != len(b):
return False
result = 0
for x, y in zip(six.iterbytes(a), six.iterbytes(b)):
result |= x ^ y
return result == 0

class new_sha3_512:
class new_sha3_512(object):
block_size = 72
digest_size = 64

Expand Down

0 comments on commit ef35a2d

Please sign in to comment.