summaryrefslogtreecommitdiff
path: root/git/config.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-04 13:48:29 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-04 13:48:29 +0100
commitc80d727e374321573bb00e23876a67c77ff466e3 (patch)
tree7590d6ae544eac56e83639d27e1f9013b38d8a4b /git/config.py
parent965a08c3f9f2fbd62691d533425c699c943cb865 (diff)
downloadgitpython-c80d727e374321573bb00e23876a67c77ff466e3.tar.gz
Bumped version, updated changelog, reduced code smell
There is more work to do though, as many imports are still incorrect. Also, there are still print statements
Diffstat (limited to 'git/config.py')
-rw-r--r--git/config.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/git/config.py b/git/config.py
index 8a15466f..51337db4 100644
--- a/git/config.py
+++ b/git/config.py
@@ -7,10 +7,8 @@
configuration files"""
import re
-import os
import ConfigParser as cp
import inspect
-import cStringIO
from git.odict import OrderedDict
from git.util import LockFile
@@ -188,8 +186,8 @@ class GitConfigParser(cp.RawConfigParser, object):
try:
try:
self.write()
- except IOError, e:
- print "Exception during destruction of GitConfigParser: %s" % str(e)
+ except IOError as e:
+ print("Exception during destruction of GitConfigParser: %s" % str(e))
finally:
self._lock._release_lock()
@@ -287,7 +285,7 @@ class GitConfigParser(cp.RawConfigParser, object):
try:
fp = open(file_object)
close_fp = True
- except IOError, e:
+ except IOError:
continue
# END fp handling