diff options
author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2009-05-28 15:54:46 +0200 |
---|---|---|
committer | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2009-05-28 15:54:46 +0200 |
commit | 08d9a46869a44b5c9f443c2ab58d21bb23652d55 (patch) | |
tree | 90008e3398b100fedf5f8c8b3e56f9e84606ac78 /date.py | |
parent | a20a791841e9cc98499da1dd68819c9a3232e303 (diff) | |
download | logilab-common-08d9a46869a44b5c9f443c2ab58d21bb23652d55.tar.gz |
[date] add missing import
Diffstat (limited to 'date.py')
-rw-r--r-- | date.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -12,8 +12,9 @@ from datetime import date, datetime, timedelta try: from mx.DateTime import RelativeDateTime, Date except ImportError: - from datetime import date, timedelta + from warnings import warn warn("mxDateTime not found, endsOfMonth won't be available") + from datetime import date, timedelta def weekday(date): return date.weekday() endOfMonth = None |