mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01:00
Merge pull request #538 from lethliel/fix_unimported_urldefrag
Import urldefrag function
This commit is contained in:
commit
c5139fdff8
4
NEWS
4
NEWS
@ -1,5 +1,5 @@
|
||||
0.166.0
|
||||
-
|
||||
0.165.1
|
||||
- fix oscssl "urldefrag is not defined error"
|
||||
|
||||
0.165.0
|
||||
- full python3 compatibility
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user