Skip to content

Commit

Permalink
fix duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
wdpypere committed Nov 16, 2023
1 parent 3c030d3 commit 66b3b06
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/vsc/utils/py2vs3/py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@
from tempfile import TemporaryDirectory # noqa
from urllib.parse import urlencode, unquote # noqa
from urllib.request import HTTPError, HTTPSHandler, Request, build_opener, urlopen # noqa
try:
# py 3.10+
from collections.abc import Mapping # noqa
except ImportError:
# < py 3.10
from collections.abc import Mapping # noqa
from collections.abc import Mapping # noqa

FileExistsErrorExc = FileExistsError # noqa
FileNotFoundErrorExc = FileNotFoundError # noqa
Expand Down

0 comments on commit 66b3b06

Please sign in to comment.