Commit 8bd083ce authored by jvoisin's avatar jvoisin
Browse files

Support python3.5

parent 4da974ed
Pipeline #11870 passed with stage
in 1 minute and 6 seconds
......@@ -30,8 +30,8 @@ class OfficeParser(abstract.AbstractParser):
temp_folder = tempfile.mkdtemp()
for item in zin.infolist():
if item.is_dir():
if item.filename[-1] == '/':
continue # `is_dir` is added in Python3.6
elif item.filename.startswith('docProps/'):
if not item.filename.endswith('.rels'):
continue # don't keep metadata files
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