Skip to content

Commit f9dc96b

Browse files
committed
Convert always to int over float
1 parent 06e9478 commit f9dc96b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

benchmark/benchmark.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525

2626

2727
def str_to_int(s):
28-
try:
29-
return int(s)
30-
except ValueError:
31-
return int(float(s))
28+
return int(float(s))
3229

3330

3431
parser = argparse.ArgumentParser(description='Benchmark the instrumenters.',

0 commit comments

Comments
 (0)