From e216fd2112c796bd625730f711861b7361f6fe9f Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 6 Apr 2014 19:52:59 +0200 Subject: Code cleanup fixes whitespace issues, some builtin overrides, and some enormous lines might make poezio run nanoseconds faster! --- src/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common.py') diff --git a/src/common.py b/src/common.py index 1ec2a42a..e9fe05c8 100644 --- a/src/common.py +++ b/src/common.py @@ -205,7 +205,7 @@ def datetime_tuple(timestamp): tz_msg = timestamp[15:] try: ret = datetime.strptime(date, '%Y%m%dT%H%M%S') - except Exception as e: + except Exception: ret = datetime.now() # add the message timezone if any try: @@ -215,7 +215,7 @@ def datetime_tuple(timestamp): tz_msg = tz_msg.tm_hour * 3600 + tz_msg.tm_min * 60 tz_msg = timedelta(seconds=tz_mod * tz_msg) ret -= tz_msg - except Exception as e: + except Exception: pass # ignore if we got a badly-formatted offset # convert UTC to local time, with DST etc. if time.daylight and time.localtime().tm_isdst: -- cgit v1.2.3