summaryrefslogtreecommitdiff
path: root/umessage.py
diff options
context:
space:
mode:
authorPierre-Yves David <pierre-yves.david@logilab.fr>2008-06-23 14:08:27 +0200
committerPierre-Yves David <pierre-yves.david@logilab.fr>2008-06-23 14:08:27 +0200
commit6348cf0813d3a95d3d7f0bccfde853211b17a1e7 (patch)
tree6be19fac3c57a3902db4dd149f82900ab13d7652 /umessage.py
parent10bfac5cca117eb5c8b973d3600d67bebe6e88d8 (diff)
downloadlogilab-common-6348cf0813d3a95d3d7f0bccfde853211b17a1e7.tar.gz
umessage.date() return unparsage string as is instead of None
Diffstat (limited to 'umessage.py')
-rw-r--r--umessage.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/umessage.py b/umessage.py
index 1ab9125..fa1e57e 100644
--- a/umessage.py
+++ b/umessage.py
@@ -122,13 +122,11 @@ class UMessage:
value = unix_from.split(" ", 2)[2]
except IndexError:
pass
-
if value is not None:
datetuple = parsedate(value)
if datetuple:
return DateTime(*datetuple[:6])
- else:
- return None
+ return value