Author: phd
Date: Wed Dec 25 08:19:53 2013
New Revision: 4695
Log:
Minor optimization
Modified:
SQLObject/branches/1.6/sqlobject/col.py
Modified: SQLObject/branches/1.6/sqlobject/col.py
==============================================================================
--- SQLObject/branches/1.6/sqlobject/col.py Tue Dec 24 06:19:58 2013 (r4694)
+++ SQLObject/branches/1.6/sqlobject/col.py Wed Dec 25 08:19:53 2013 (r4695)
@@ -1107,7 +1107,7 @@
_l = len(microseconds)
if _l < 6:
_value[-1] = '%06d' % int(microseconds)
- if _l > 6:
+ elif _l > 6:
_value[-1] = microseconds[:6]
if _l != 6:
value = '.'.join(_value)
@@ -1154,7 +1154,7 @@
_l = len(microseconds)
if _l < 6:
_value[-1] = '%06d' % int(microseconds)
- if _l > 6:
+ elif _l > 6:
_value[-1] = microseconds[:6]
if _l != 6:
value = '.'.join(_value)
|