[cw.utils] avoid spurious warning, ustrftime may be globally imported stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 06 Sep 2010 19:37:37 +0200
branchstable
changeset 6176 33ba2c1dbf10
parent 6175 104453c4ed3e
child 6177 76aaca285e07
[cw.utils] avoid spurious warning, ustrftime may be globally imported
utils.py
--- a/utils.py	Mon Sep 06 19:37:12 2010 +0200
+++ b/utils.py	Mon Sep 06 19:37:37 2010 +0200
@@ -335,6 +335,7 @@
 
 else:
     from logilab.common.date import ustrftime
+
     class CubicWebJsonEncoder(json.JSONEncoder):
         """define a json encoder to be able to encode yams std types"""
 
@@ -375,7 +376,7 @@
 _THIS_MOD_NS = globals()
 for funcname in ('date_range', 'todate', 'todatetime', 'datetime2ticks',
                  'days_in_month', 'days_in_year', 'previous_month',
-                 'next_month', 'first_day', 'last_day', 'ustrftime',
+                 'next_month', 'first_day', 'last_day',
                  'strptime'):
     msg = '[3.6] %s has been moved to logilab.common.date' % funcname
     _THIS_MOD_NS[funcname] = deprecated(msg)(getattr(date, funcname))