mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-22 06:28:53 +02:00
Import urldefrag function
The function was not imported and so osc crashed when executed behind a proxy
This commit is contained in:
@@ -13,12 +13,12 @@ import sys
|
||||
import inspect
|
||||
|
||||
try:
|
||||
from urllib.parse import urlparse, splithost, splitport, splittype
|
||||
from urllib.parse import urlparse, splithost, splitport, splittype, urldefrag
|
||||
from urllib.request import addinfourl
|
||||
from http.client import HTTPSConnection
|
||||
except ImportError:
|
||||
#python 2.x
|
||||
from urlparse import urlparse
|
||||
from urlparse import urlparse, urldefrag
|
||||
from urllib import addinfourl, splithost, splitport, splittype
|
||||
from httplib import HTTPSConnection
|
||||
|
||||
|
Reference in New Issue
Block a user