Modernize code base to Python 3+ syntax

Replaces syntax that was relevant in earlier Python versions but that
now has modernized equivalents.
This commit is contained in:
Justin Mayer 2020-04-26 09:55:08 +02:00
commit d43b786b30
37 changed files with 104 additions and 171 deletions

View file

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import datetime
import logging
import os
@ -101,7 +99,7 @@ def _filter_discardable_metadata(metadata):
return {name: val for name, val in metadata.items() if val is not _DISCARD}
class BaseReader(object):
class BaseReader:
"""Base class to read files.
This class is used to process static files, and it can be inherited for