diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-02-19 12:01:35 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-02-20 12:35:43 +0100 |
commit | 048e3b6e1960bd8e1d79b8a458d27a288616d24d (patch) | |
tree | f96482533573cd4958f21b3f6c685cf77b6d89e9 | |
parent | c22fb3cb2eadaaedf8ff7d68855d340975dd4c6b (diff) |
Convert zip and map to list
to work towards Python3 support
Gbp-Dch: Ignore
-rw-r--r-- | gbp/log.py | 4 | ||||
-rw-r--r-- | tests/test_GitRepository.py | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -24,8 +24,8 @@ from logging import (DEBUG, INFO, WARNING, ERROR, CRITICAL, getLogger) import gbp.tristate -COLORS = dict([('none', 0)] + zip(['black', 'red', 'green', 'yellow', 'blue', - 'magenta', 'cyan', 'white'], range(30, 38))) +COLORS = dict([('none', 0)] + list(zip(['black', 'red', 'green', 'yellow', 'blue', + 'magenta', 'cyan', 'white'], range(30, 38)))) DEFAULT_COLOR_SCHEME = {DEBUG: COLORS['green'], INFO: COLORS['green'], WARNING: COLORS['red'], diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index 30e25c2..4e34401 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -17,9 +17,9 @@ import gbp.log gbp.log.setup(color=False, verbose=True) -repo_dir, bare_dir, clone_dir, mirror_clone_dir = map( +repo_dir, bare_dir, clone_dir, mirror_clone_dir = list(map( lambda x, tmpdir=context.new_tmpdir(__name__): tmpdir.join(x), - ['repo', 'bare', 'clone', 'mirror_clone']) + ['repo', 'bare', 'clone', 'mirror_clone'])) def test_create(): """ |