Revert part of "import module used only in debug mode"
Since the date are now not always imported, it does not make a lot of sense to not import all date utils
This commit is contained in:
parent
537b49e6bd
commit
20ffb6ca08
1 changed files with 1 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
import dateutil.parser
|
||||
from datetime import date as real_date, datetime as real_datetime, timedelta
|
||||
import time
|
||||
import re
|
||||
|
|
@ -263,7 +263,6 @@ def parse_french_date(date):
|
|||
for fr, en in DATE_TRANSLATE_FR:
|
||||
date = fr.sub(en, date)
|
||||
|
||||
import dateutil.parser
|
||||
return dateutil.parser.parse(date)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue