Commit eb15da86 authored by Nicolas Delaby's avatar Nicolas Delaby

import instead overload classes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19045 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2a9515c
...@@ -28,22 +28,12 @@ ...@@ -28,22 +28,12 @@
from DateTime import DateTime as DateTimeKlass from DateTime import DateTime as DateTimeKlass
import math import math
from DateTime.DateTime import _calcSD, _calcDependentSecond, _calcYMDHMS, getDefaultDateFormat, _correctYear, _calcHMS, _calcDependentSecond2 from DateTime.DateTime import _calcSD, _calcDependentSecond, _calcYMDHMS,\
getDefaultDateFormat, _correctYear, _calcHMS, _calcDependentSecond2, DateTimeError,\
SyntaxError, DateError, TimeError
STATE_KEY = 'str' STATE_KEY = 'str'
class DateTimeError( Exception ):
pass
class SyntaxError( DateTimeError ):
pass
class DateError( DateTimeError ):
pass
class TimeError( DateTimeError ):
pass
def DateTime__setstate__(self, state): def DateTime__setstate__(self, state):
if isinstance(state, tuple): if isinstance(state, tuple):
t, tz = state t, tz = state
......
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