summaryrefslogtreecommitdiff
path: root/git/test/lib/helper.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-04 15:39:28 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-04 15:39:28 +0100
commit6f55c17f48d7608072199496fbcefa33f2e97bf0 (patch)
treed6c69f667f3cce87d3fe5bf9baa62a081f4af7a8 /git/test/lib/helper.py
parent1b9d3b961bdf79964b883d3179f085d8835e528d (diff)
downloadgitpython-6f55c17f48d7608072199496fbcefa33f2e97bf0.tar.gz
Replaced ordered dict with standard version; used logging module
All performance tests still print to stderr, but do so in a py3 compatible way
Diffstat (limited to 'git/test/lib/helper.py')
-rw-r--r--git/test/lib/helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py
index a18f22ef..9c935ce0 100644
--- a/git/test/lib/helper.py
+++ b/git/test/lib/helper.py
@@ -3,7 +3,7 @@
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-
+from __future__ import print_function
import os
import sys
from git import Repo, Remote, GitCommandError, Git
@@ -111,7 +111,7 @@ def with_rw_repo(working_tree_ref, bare=False):
try:
return func(self, rw_repo)
except:
- print >> sys.stderr, "Keeping repo after failure: %s" % repo_dir
+ print("Keeping repo after failure: %s" % repo_dir, file=sys.stderr)
repo_dir = None
raise
finally: