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:
Steve Kowalik
2019-09-25 15:22:06 +10:00
committed by GitHub
parent f91cbac2e3
commit 89c967bb77
+1 -4
View File
@@ -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: