Removes py2.7 urlparse import (#168)

* Fixes #167 - Removes py2.7 urlparse import

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Matt Seymour 2022-05-29 10:33:30 +01:00 committed by GitHub
parent b9cc1e47b7
commit aba6a67d51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,7 @@
# -*- coding: utf-8 -*-
import os
try:
import urlparse
except ImportError:
import urllib.parse as urlparse
import urllib.parse as urlparse
try:
from django import VERSION as DJANGO_VERSION