mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 10:51:14 +00:00
Cleanup try/except import in PaginatedList (#1228)
Since we're using six.moves to import parse_qs, we don't need to check for an import exception, we can just import it directly.
This commit is contained in:
@@ -39,10 +39,7 @@ import six
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
try:
|
||||
from urllib.parse import parse_qs
|
||||
except ImportError:
|
||||
from six.moves.urllib.parse import parse_qs
|
||||
from six.moves.urllib.parse import parse_qs
|
||||
|
||||
|
||||
class PaginatedListBase:
|
||||
|
||||
Reference in New Issue
Block a user