Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
xrange(10) --> range(10) for Python 3 (#11673)
Browse files Browse the repository at this point in the history
__xrange()__ was removed in Python 3 in favor of __range()__.  For such a small number as 10 there is no difference between __xrange()__ and __range()__ in Python 2.
  • Loading branch information
cclauss authored and eric-haibin-lin committed Jul 13, 2018
1 parent c766712 commit 6b2cbd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/python/sparse/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def estimate_density(DATA_PATH, feature_size):
raise Exception("Data is not there!")
density = []
P = 0.01
for _ in xrange(10):
for _ in range(10):
num_non_zero = 0
num_sample = 0
with open(DATA_PATH) as f:
Expand Down

0 comments on commit 6b2cbd4

Please sign in to comment.