Commits

Marcin Kuzminski committed 24ffe23

fix dateutil import

Comments (0)

Files changed (1)

rhodecode/lib/utils2.py

     # Get date parts deltas
     for part in order:
         if future:
-            import dateutil
-            d = dateutil.relativedelta.relativedelta(now, prevdate)
+            from dateutil import relativedelta
+            d = relativedelta.relativedelta(now, prevdate)
             deltas[part] = getattr(d, part + 's')
         else:
             deltas[part] = getattr(now, part) - getattr(prevdate, part)