From eb15da86253d6fe5fc32eb083363aaa0af34baad Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Tue, 5 Feb 2008 12:11:00 +0000
Subject: [PATCH] import instead overload classes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19045 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/patches/DateTimePatch.py | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/product/ERP5Type/patches/DateTimePatch.py b/product/ERP5Type/patches/DateTimePatch.py
index 5f6df3a274..16f8e1c736 100644
--- a/product/ERP5Type/patches/DateTimePatch.py
+++ b/product/ERP5Type/patches/DateTimePatch.py
@@ -28,22 +28,12 @@
 
 from DateTime import DateTime as DateTimeKlass
 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'
 
-class DateTimeError( Exception ):
-    pass
-
-class SyntaxError( DateTimeError ):
-    pass
-
-class DateError( DateTimeError ):
-    pass
-
-class TimeError( DateTimeError ):
-    pass
-
 def DateTime__setstate__(self, state):
   if isinstance(state, tuple):
     t, tz = state
-- 
2.30.9