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/objects/util.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'git/objects/util.py') diff --git a/git/objects/util.py b/git/objects/util.py index 76a24a6f..fdf9622b 100644 --- a/git/objects/util.py +++ b/git/objects/util.py @@ -15,7 +15,6 @@ from collections import deque as Deque from string import digits import time import calendar -import os __all__ = ('get_object_type_by_name', 'parse_date', 'parse_actor_and_date', 'ProcessStreamAdapter', 'Traversable', 'altz_to_utctz_str', 'utctz_to_altz', @@ -89,10 +88,10 @@ def verify_utctz(offset): raise fmt_exc if offset[0] not in "+-": raise fmt_exc - if offset[1] not in digits or \ - offset[2] not in digits or \ - offset[3] not in digits or \ - offset[4] not in digits: + if offset[1] not in digits or\ + offset[2] not in digits or\ + offset[3] not in digits or\ + offset[4] not in digits: raise fmt_exc # END for each char return offset -- cgit v1.2.1