Commit 2bdc8f14 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Move import at file level.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2234 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 43be9356
......@@ -17,6 +17,7 @@
from time import time, gmtime
from struct import pack, unpack
from datetime import timedelta, datetime
from neo.util import dump
from neo import logging
......@@ -190,7 +191,6 @@ class TransactionManager(object):
upper, lower = unpack('!LL', self._last_tid)
if lower == 0xffffffff:
# This should not happen usually.
from datetime import timedelta, datetime
d = datetime(gmt.tm_year, gmt.tm_mon, gmt.tm_mday,
gmt.tm_hour, gmt.tm_min) + timedelta(0, 60)
gmt.tm_hour, gmt.tm_min) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment