aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/orm/management/commands/lsupdates.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/orm/management/commands/lsupdates.py b/lib/orm/management/commands/lsupdates.py
index ce085a11..28ee1e5f 100644
--- a/lib/orm/management/commands/lsupdates.py
+++ b/lib/orm/management/commands/lsupdates.py
@@ -327,12 +327,8 @@ class Command(BaseCommand):
logger.info("***LS UPDATES***")
- try:
- from urllib.request import urlopen, URLError
- from urllib.parse import urlparse
- except ImportError:
- from urllib2 import urlopen, URLError
- from urlparse import urlparse
+ from urllib.request import urlopen, URLError
+ from urllib.parse import urlparse
# Process the data sources in strict pk order to insure dependencies
data_sources=DataSource.objects.all().order_by('key')