aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-01-14 12:44:35 +0000
committerDavid Reyna <David.Reyna@windriver.com>2019-01-14 21:56:57 -0800
commit2fc9e616361ecb00d52fd41c29f3fd5a658c7735 (patch)
treeeee3a869cd984a3215fa24e1b1c2a5ef9f6045a1
parentc9637c8b70724a8c56fe44f05e4d635336b6578e (diff)
downloadsrtool-2fc9e616361ecb00d52fd41c29f3fd5a658c7735.tar.gz
srtool-2fc9e616361ecb00d52fd41c29f3fd5a658c7735.tar.bz2
srtool-2fc9e616361ecb00d52fd41c29f3fd5a658c7735.zip
lib/orm: clean up imports
-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')