X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fvim-emu.git;a=blobdiff_plain;f=src%2Femuvim%2Fapi%2Fopenstack%2Fhelper.py;fp=src%2Femuvim%2Fapi%2Fopenstack%2Fhelper.py;h=5f9d5730642d1be2be6d944f30a8d30e2e0b077c;hp=c7ef69bf675294034b616ea70de38f372d98d06e;hb=aa8823c85d94a4fa72de058076195296334cdb91;hpb=85408ed517f100c3e477efd35e54630bf9171af0 diff --git a/src/emuvim/api/openstack/helper.py b/src/emuvim/api/openstack/helper.py index c7ef69b..5f9d573 100644 --- a/src/emuvim/api/openstack/helper.py +++ b/src/emuvim/api/openstack/helper.py @@ -23,7 +23,10 @@ # the Horizon 2020 and 5G-PPP programmes. The authors would like to # acknowledge the contributions of their colleagues of the SONATA # partner consortium (www.sonata-nfv.eu). -from urlparse import urlparse +try: + from urllib.parse import urlparse +except ImportError: + from urlparse import urlparse import logging LOG = logging.getLogger("api.openstack.helper")