From c80d727e374321573bb00e23876a67c77ff466e3 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 4 Jan 2015 13:48:29 +0100 Subject: 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 --- git/config.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'git/config.py') 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 -- cgit v1.2.1