Skip to content

Commit

Permalink
Fix integer division in python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Roberts committed Jun 20, 2016
1 parent 79934f8 commit 495e650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion names/bulk.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_name(filename):
# Empty file
return ""
while min_index < max_index:
index = (min_index + max_index) / 2
index = (min_index + max_index) // 2
name, cummulative = names[index]
if cummulative < selected:
min_index = index
Expand Down

0 comments on commit 495e650

Please sign in to comment.