Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix uplink with Python 2.7 #223

Merged
merged 22 commits into from
Dec 31, 2021
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix uplink with Python 2.7
  • Loading branch information
shadchin authored and prkumar committed Dec 30, 2021
commit a704f6d71b4a95ddddfce4eab1f4c20b05727189
5 changes: 4 additions & 1 deletion uplink/arguments.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,10 @@
"""
# Standard library imports
import collections
from collections import abc
try:
from collections import abc
except ImportError:
import collections as abc
import functools
import inspect

5 changes: 4 additions & 1 deletion uplink/auth.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
"""This module implements the auth layer."""

# Standard library imports
from collections import abc
try:
from collections import abc
except ImportError:
import collections as abc

# Third-party imports
from requests import auth
5 changes: 4 additions & 1 deletion uplink/clients/io/interfaces.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Standard library imports
from collections import abc
try:
from collections import abc
except ImportError:
import collections as abc

# Local imports
from uplink import compat
5 changes: 4 additions & 1 deletion uplink/commands.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Standard library imports
from collections import abc
try:
from collections import abc
except ImportError:
import collections as abc
import functools

# Local imports
5 changes: 4 additions & 1 deletion uplink/converters/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Standard library imports
from collections import abc
try:
from collections import abc
except ImportError:
import collections as abc

# Local imports
from uplink._extras import installer, plugin
5 changes: 4 additions & 1 deletion uplink/converters/typing_.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Standard library imports
import collections
from collections import abc
try:
from collections import abc
except ImportError:
import collections as abc
import functools

# Local imports
5 changes: 4 additions & 1 deletion uplink/decorators.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,10 @@
handling classes.
"""
# Standard library imports
from collections import abc
try:
from collections import abc
except ImportError:
import collections as abc
import functools
import inspect