summaryrefslogtreecommitdiff
path: root/git/objects/submodule/root.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/objects/submodule/root.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/objects/submodule/root.py')
-rw-r--r--git/objects/submodule/root.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/git/objects/submodule/root.py b/git/objects/submodule/root.py
index 871cc21c..708749c7 100644
--- a/git/objects/submodule/root.py
+++ b/git/objects/submodule/root.py
@@ -5,10 +5,12 @@ from util import (
from git.exc import InvalidGitRepositoryError
import git
-import sys
+import logging
__all__ = ["RootModule", "RootUpdateProgress"]
+log = logging.getLogger('git.objects.submodule.root')
+
class RootUpdateProgress(UpdateProgress):
@@ -247,8 +249,8 @@ class RootModule(Submodule):
# this way, it will be checked out in the next step
# This will change the submodule relative to us, so
# the user will be able to commit the change easily
- print >> sys.stderr, "WARNING: Current sha %s was not contained in the tracking\
- branch at the new remote, setting it the the remote's tracking branch" % sm.hexsha
+ log.warn("Current sha %s was not contained in the tracking\
+ branch at the new remote, setting it the the remote's tracking branch", sm.hexsha)
sm.binsha = rref.commit.binsha
# END reset binsha