Fixes python3 non-compatible import of urlparse

Implements: release-yaml-file-prep.py python3 compatibility
    Closes-Bug: #1712546

Change-Id: I97f46c017b2cad6f8be757c529ccacd6c971757c
This commit is contained in:
Jakob Hasselmann 2017-08-23 18:10:11 +02:00 committed by Amy Marrich (spotz)
parent 0f9c3d5bb7
commit 85d24272bc
1 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,12 @@
from __future__ import print_function
from cStringIO import StringIO
from urlparse import urlparse
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
import argparse
import re