diff options
author | mathieui <mathieui@mathieui.net> | 2014-03-23 00:15:01 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-03-23 00:15:01 +0100 |
commit | 186803d9a97d7efb089acc470b98293b7e472db5 (patch) | |
tree | 89533dc38acddbcfbb34b162974bd29a62c07db3 /src/common.py | |
parent | 918e15d1781fce0fbf2b7b2b047be32163bc4679 (diff) | |
download | poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.gz poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.bz2 poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.xz poezio-186803d9a97d7efb089acc470b98293b7e472db5.zip |
Fix formatting, some typos, and unused code, and add docstrings
- No idea why subclasses of ConversationTab were working before
(info_header was overriden with None in __init__)
- Or why the date parsing worked (“Exeception”)
- Some more reformatting with pylint indications
- Document each module in the tabs module
Diffstat (limited to 'src/common.py')
-rw-r--r-- | src/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.py b/src/common.py index e7568bb7..8fbf34fb 100644 --- a/src/common.py +++ b/src/common.py @@ -198,7 +198,7 @@ def datetime_tuple(timestamp): tz_msg = timestamp[15:] try: ret = datetime.strptime(date, '%Y%m%dT%H%M%S') - except Exeception as e: + except Exception as e: ret = datetime.now() # add the message timezone if any try: |