Skip to content

Commit e429603

Browse files
authored
Removed unsupported backward compatibility
1 parent 0aabe09 commit e429603

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/project_name/settings.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@
2222
import os
2323
import ast
2424

25-
try:
26-
from urllib.parse import urlparse, urlunparse
27-
from urllib.request import urlopen, Request
28-
except ImportError:
29-
from urllib2 import urlopen, Request
30-
from urlparse import urlparse, urlunparse
25+
from urllib.parse import urlparse, urlunparse
26+
from urllib.request import urlopen, Request
3127
# Load more settings from a file called local_settings.py if it exists
3228
try:
3329
from {{ project_name }}.local_settings import *

0 commit comments

Comments
 (0)