-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix formatting and imports for Python 3.9
- Loading branch information
Showing
3 changed files
with
32 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
import importlib.resources as resources # noqa: F401 | ||
import sys | ||
|
||
if sys.version_info < (3, 10): | ||
import importlib_metadata as metadata # pragma: no cover | ||
else: | ||
import importlib.metadata as metadata # noqa: F401 | ||
|
||
|
||
if sys.version_info < (3, 9): | ||
import importlib_resources as resources # pragma: no cover | ||
else: | ||
import importlib.resources as resources # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters