-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
C: testsTesting and related thingsTesting and related thingstype: refactorRefactoring codeRefactoring code
Milestone
Description
File: https://github.com/pypa/pip/blob/master/tests/lib/path.py
There exist better alternatives to rolling out our own "Path" class for file handling -- the stdlib pathlib.Path and pathlib2.Path (backport to Py2) should be more than sufficient to satisfy our needs now.
if sys.python_version_info[0] >= 3:
from pathlib import Path
else:
from pathlib2 import Path
To be done:
- Confirm that the pathlib equivalent is indeed enough for our needs.
- Figure out the relevant workarounds if needed.
- Drop this file and just directly perform the imports.
Metadata
Metadata
Assignees
Labels
C: testsTesting and related thingsTesting and related thingstype: refactorRefactoring codeRefactoring code