summaryrefslogtreecommitdiff
path: root/date.py
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2009-05-28 15:54:46 +0200
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2009-05-28 15:54:46 +0200
commit08d9a46869a44b5c9f443c2ab58d21bb23652d55 (patch)
tree90008e3398b100fedf5f8c8b3e56f9e84606ac78 /date.py
parenta20a791841e9cc98499da1dd68819c9a3232e303 (diff)
downloadlogilab-common-08d9a46869a44b5c9f443c2ab58d21bb23652d55.tar.gz
[date] add missing import
Diffstat (limited to 'date.py')
-rw-r--r--date.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/date.py b/date.py
index bcdb0f9..b5d0509 100644
--- a/date.py
+++ b/date.py
@@ -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