Skip to content

Commit

Permalink
fixed pep8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
johnchase committed Jun 16, 2016
1 parent 08ad41d commit 5732ddd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cualid/mint.py
Expand Up @@ -28,7 +28,8 @@ def create_ids(n, id_length,
initial_hrid_len = len(hrids)
failures = 0
trys = 1
while len(hrids) - initial_hrid_len < n and failures/trys < failure_threshold:
while (len(hrids) - initial_hrid_len < n and
failures/trys < failure_threshold):
trys += 1
uuid_ = uuid.uuid4()
hrid = uuid_.hex[-id_length:]
Expand Down

0 comments on commit 5732ddd

Please sign in to comment.