diff options
author | Jeremy Heiner <scalaprotractor@gmail.com> | 2013-10-12 12:44:35 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-14 13:01:15 +1000 |
commit | e9c7c3b90d1f266aebc98a36b1d32a61f7113505 (patch) | |
tree | 0662346429d659845c6856a6978a5b38110735cb /proto | |
parent | 95b0a868f255f2766ae03733882f30c8c7f3b7ca (diff) | |
download | pacman-e9c7c3b90d1f266aebc98a36b1d32a61f7113505.tar.xz |
Use Python's "range" instead of deprecated "xrange".
Reported by 2to3. Python 3 throws out the old range, renames the old
xrange to be the new range, leaving no xrange. A shim could be used,
but using the less efficient version does not have a noticeable impact
on the run time. This observed (lack of an) effect is as described in
the Python 2 docs for xrange. The largest range created is only 1000
elements big, and the memory cost of those ranges is negligible when
compared to that of all the pmpkg instances created.
Signed-off-by: Jeremy Heiner <ScalaProtractor at gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'proto')
0 files changed, 0 insertions, 0 deletions