1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 09:16:14 +01:00

Import urldefrag function

The function was not imported and so osc crashed when executed behind a proxy
This commit is contained in:
lethliel 2019-04-26 10:49:03 +02:00
parent a3de1bdad1
commit 9aba391a11
2 changed files with 4 additions and 4 deletions

4
NEWS
View File

@ -1,5 +1,5 @@
0.166.0
-
0.165.1
- fix oscssl "urldefrag is not defined error"
0.165.0
- full python3 compatibility

View File

@ -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