diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 12:49:33 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-09-21 12:49:33 +0000 |
commit | fa8ea8ef3cc8a7433d496e3dc54d56a0bd2ffd06 (patch) | |
tree | 90ba609a1b93428a62c936ae321d485f519b4f85 /pym/portage/output.py | |
parent | c581522b4fcac9edae8e494e213c654612ad4490 (diff) | |
download | portage-fa8ea8ef3cc8a7433d496e3dc54d56a0bd2ffd06.tar.gz portage-fa8ea8ef3cc8a7433d496e3dc54d56a0bd2ffd06.tar.bz2 portage-fa8ea8ef3cc8a7433d496e3dc54d56a0bd2ffd06.zip |
Use range() instead of xrange() for compatibility with Python 3.
(2to3-3.1 -f xrange -nw ${FILES})
svn path=/main/trunk/; revision=14317
Diffstat (limited to 'pym/portage/output.py')
-rw-r--r-- | pym/portage/output.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/output.py b/pym/portage/output.py index 570de78e9..5f310d300 100644 --- a/pym/portage/output.py +++ b/pym/portage/output.py @@ -77,7 +77,7 @@ def color(fg, bg="default", attr=["normal"]): ansi_codes = [] -for x in xrange(30, 38): +for x in range(30, 38): ansi_codes.append("%im" % x) ansi_codes.append("%i;01m" % x) @@ -85,7 +85,7 @@ rgb_ansi_colors = ['0x000000', '0x555555', '0xAA0000', '0xFF5555', '0x00AA00', '0x55FF55', '0xAA5500', '0xFFFF55', '0x0000AA', '0x5555FF', '0xAA00AA', '0xFF55FF', '0x00AAAA', '0x55FFFF', '0xAAAAAA', '0xFFFFFF'] -for x in xrange(len(rgb_ansi_colors)): +for x in range(len(rgb_ansi_colors)): codes[rgb_ansi_colors[x]] = esc_seq + ansi_codes[x] del x |