mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-27 07:06:13 +01:00
Merge branch 'remove_dead_code' of https://github.com/lethliel/osc
Remove dead code from the fetch module. Actually, it should have
been removed in commit 95ec7dee7b
('- fixed #590606 ("osc/fetch.py does not support authenticated URLs")').
This commit is contained in:
commit
dd814054ee
11
osc/fetch.py
11
osc/fetch.py
@ -9,11 +9,11 @@ import sys, os
|
||||
|
||||
try:
|
||||
from urllib.parse import quote_plus
|
||||
from urllib.request import HTTPBasicAuthHandler, HTTPCookieProcessor, HTTPPasswordMgrWithDefaultRealm, HTTPError
|
||||
from urllib.request import HTTPError
|
||||
except ImportError:
|
||||
#python 2.x
|
||||
from urllib import quote_plus
|
||||
from urllib2 import HTTPBasicAuthHandler, HTTPCookieProcessor, HTTPPasswordMgrWithDefaultRealm, HTTPError
|
||||
from urllib2 import HTTPError
|
||||
|
||||
from .core import makeurl, streamfile, dgst
|
||||
from .grabber import OscFileGrabber, OscMirrorGroup
|
||||
@ -43,13 +43,6 @@ class Fetcher:
|
||||
self.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)
|
||||
|
||||
def __add_cpio(self, pac):
|
||||
|
Loading…
Reference in New Issue
Block a user