Skip to content

Import pathlib/pathlib2 and contextlib/contextlib2 based on python version

Ghost User requested to merge (removed):master into master

Instead of checking for an ImportError use sys.version_info to decide which package of pathlib or pathlib2 to use. The same holds true for contextlib vs contextlib2.

Merge request reports