diff options
-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(): """ |