Commit 43edf5ec authored by Administrator's avatar Administrator

[COSMETICS] Some air in the code.

parent 7cb3580e
......@@ -94,6 +94,8 @@ class EuropressFileParser(FileParser):
test_sect = None
test_page = None
if test_date_fr is not None:
self.localeEncoding = "fr_FR"
locale.setlocale(locale.LC_ALL, localeEncoding)
......@@ -102,7 +104,6 @@ class EuropressFileParser(FileParser):
text = text.replace('ű', 'û')
text = text.replace(' aot ', ' août ')
try :
metadata['publication_date'] = datetime.strptime(text, '%d %B %Y')
except :
......@@ -118,6 +119,8 @@ class EuropressFileParser(FileParser):
print(text)
pass
if test_date_en is not None:
localeEncoding = "en_GB.UTF-8"
locale.setlocale(locale.LC_ALL, localeEncoding)
......
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