mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 17:46:17 +01:00
remove dead opener code
The opener is generated but never used.
Since commit 95ec7dee7b
This commit is contained in:
parent
e807abbf7c
commit
297b050f1e
11
osc/fetch.py
11
osc/fetch.py
@ -9,11 +9,11 @@ import sys, os
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
from urllib.parse import quote_plus
|
from urllib.parse import quote_plus
|
||||||
from urllib.request import HTTPBasicAuthHandler, HTTPCookieProcessor, HTTPPasswordMgrWithDefaultRealm, HTTPError
|
from urllib.request import HTTPError
|
||||||
except ImportError:
|
except ImportError:
|
||||||
#python 2.x
|
#python 2.x
|
||||||
from urllib import quote_plus
|
from urllib import quote_plus
|
||||||
from urllib2 import HTTPBasicAuthHandler, HTTPCookieProcessor, HTTPPasswordMgrWithDefaultRealm, HTTPError
|
from urllib2 import HTTPError
|
||||||
|
|
||||||
from .core import makeurl, streamfile, dgst
|
from .core import makeurl, streamfile, dgst
|
||||||
from .grabber import OscFileGrabber, OscMirrorGroup
|
from .grabber import OscFileGrabber, OscMirrorGroup
|
||||||
@ -43,13 +43,6 @@ class Fetcher:
|
|||||||
self.cpio = {}
|
self.cpio = {}
|
||||||
self.enable_cpio = enable_cpio
|
self.enable_cpio = enable_cpio
|
||||||
|
|
||||||
passmgr = HTTPPasswordMgrWithDefaultRealm()
|
|
||||||
for host in api_host_options:
|
|
||||||
passmgr.add_password(None, host, api_host_options[host]['user'],
|
|
||||||
api_host_options[host]['pass'])
|
|
||||||
openers = (HTTPBasicAuthHandler(passmgr), )
|
|
||||||
if cookiejar:
|
|
||||||
openers += (HTTPCookieProcessor(cookiejar), )
|
|
||||||
self.gr = OscFileGrabber(progress_obj=self.progress_obj)
|
self.gr = OscFileGrabber(progress_obj=self.progress_obj)
|
||||||
|
|
||||||
def __add_cpio(self, pac):
|
def __add_cpio(self, pac):
|
||||||
|
Loading…
Reference in New Issue
Block a user