24.5 KB
python-pygerrit2 version 2.0.4-2~jan+unchanged1 (unchanged) vs.
python-pygerrit2 version 2.0.9-1~jan+nur1 (fresh-releases)
24.4 KB
python3-pygerrit2_2.0.4-2~jan+unchanged1_all.deb vs.
python3-pygerrit2_2.0.9-1~jan+nur1_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2019-07-24·23:44:41.000000·debian-binary1 -rw-r--r--···0········0········0········4·2019-07-24·23:44:41.000000·debian-binary
2 -rw-r--r--···0········0········0·····1344·2019-07-24·23:44:41.000000·control.tar.xz2 -rw-r--r--···0········0········0·····1340·2019-07-24·23:44:41.000000·control.tar.xz
3 -rw-r--r--···0········0········0····11232·2019-07-24·23:44:41.000000·data.tar.xz3 -rw-r--r--···0········0········0····12376·2019-07-24·23:44:41.000000·data.tar.xz
2.23 KB
control.tar.xz
2.2 KB
control.tar
602 B
file list
    
Offset 1, 5 lines modifiedOffset 1, 5 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./
2 -rw-r--r--···0·root·········(0)·root·········(0)······624·2019-07-24·23:44:41.000000·./control2 -rw-r--r--···0·root·········(0)·root·········(0)······618·2019-07-24·23:44:41.000000·./control
3 -rw-r--r--···0·root·········(0)·root·········(0)·····1118·2019-07-24·23:44:41.000000·./md5sums3 -rw-r--r--···0·root·········(0)·root·········(0)·····1118·2019-07-24·23:44:41.000000·./md5sums
4 -rwxr-xr-x···0·root·········(0)·root·········(0)······260·2019-07-24·23:44:41.000000·./postinst4 -rwxr-xr-x···0·root·········(0)·root·········(0)······260·2019-07-24·23:44:41.000000·./postinst
5 -rwxr-xr-x···0·root·········(0)·root·········(0)······409·2019-07-24·23:44:41.000000·./prerm5 -rwxr-xr-x···0·root·········(0)·root·········(0)······409·2019-07-24·23:44:41.000000·./prerm
409 B
./control
    
Offset 1, 10 lines modifiedOffset 1, 10 lines modified
1 Package:·python3-pygerrit21 Package:·python3-pygerrit2
2 Source:·python-pygerrit22 Source:·python-pygerrit2
3 Version:·2.0.4-2~jan+unchanged13 Version:·2.0.9-1~jan+nur1
4 Architecture:·all4 Architecture:·all
5 Maintainer:·Debian·Python·Modules·Team·<python-modules-team@lists.alioth.debian.org>5 Maintainer:·Debian·Python·Modules·Team·<python-modules-team@lists.alioth.debian.org>
6 Installed-Size:·516 Installed-Size:·51
7 Depends:·python3-pbr·(>=·0.8.2),·python3-requests·(>=·2.10.0),·python3:any7 Depends:·python3-pbr·(>=·0.8.2),·python3-requests·(>=·2.10.0),·python3:any
8 Section:·python8 Section:·python
9 Priority:·optional9 Priority:·optional
10 Multi-Arch:·foreign10 Multi-Arch:·foreign
1.19 KB
./md5sums
30.0 B
./md5sums
Files differ
1.15 KB
line order
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/PKG-INFO1 usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/PKG-INFO
2 usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/dependency_links.txt2 usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/dependency_links.txt
3 usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/not-zip-safe3 usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/not-zip-safe
4 usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/pbr.json4 usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/pbr.json
5 usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/requires.txt5 usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/requires.txt
6 usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/top_level.txt6 usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/top_level.txt
7 usr/lib/python3/dist-packages/pygerrit2/__init__.py7 usr/lib/python3/dist-packages/pygerrit2/__init__.py
8 usr/lib/python3/dist-packages/pygerrit2/rest/__init__.py8 usr/lib/python3/dist-packages/pygerrit2/rest/__init__.py
9 usr/lib/python3/dist-packages/pygerrit2/rest/auth.py9 usr/lib/python3/dist-packages/pygerrit2/rest/auth.py
10 usr/share/doc/python3-pygerrit2/changelog.Debian.gz10 usr/share/doc/python3-pygerrit2/changelog.Debian.gz
11 usr/share/doc/python3-pygerrit2/changelog.gz11 usr/share/doc/python3-pygerrit2/changelog.gz
12 usr/share/doc/python3-pygerrit2/copyright12 usr/share/doc/python3-pygerrit2/copyright
21.6 KB
data.tar.xz
21.6 KB
data.tar
4.7 KB
file list
    
Offset 1, 23 lines modifiedOffset 1, 23 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./
2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/
3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/
4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/
5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/
6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2/6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2/
7 -rw-r--r--···0·root·········(0)·root·········(0)·····5047·2017-12-13·04:28:57.000000·./usr/lib/python3/dist-packages/pygerrit2/__init__.py7 -rw-r--r--···0·root·········(0)·root·········(0)·····5376·2018-06-08·11:12:27.000000·./usr/lib/python3/dist-packages/pygerrit2/__init__.py
8 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2/rest/8 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2/rest/
9 -rw-r--r--···0·root·········(0)·root·········(0)····11487·2017-12-13·04:30:49.000000·./usr/lib/python3/dist-packages/pygerrit2/rest/__init__.py9 -rw-r--r--···0·root·········(0)·root·········(0)····11544·2019-02-27·07:02:53.000000·./usr/lib/python3/dist-packages/pygerrit2/rest/__init__.py
10 -rw-r--r--···0·root·········(0)·root·········(0)·····2086·2017-12-13·04:31:37.000000·./usr/lib/python3/dist-packages/pygerrit2/rest/auth.py10 -rw-r--r--···0·root·········(0)·root·········(0)·····2147·2018-06-11·03:37:48.000000·./usr/lib/python3/dist-packages/pygerrit2/rest/auth.py
11 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/11 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/
12 -rw-r--r--···0·root·········(0)·root·········(0)·····4446·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/PKG-INFO12 -rw-r--r--···0·root·········(0)·root·········(0)·····2242·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/PKG-INFO
13 -rw-r--r--···0·root·········(0)·root·········(0)········1·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/dependency_links.txt13 -rw-r--r--···0·root·········(0)·root·········(0)········1·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/dependency_links.txt
14 -rw-r--r--···0·root·········(0)·root·········(0)········1·2017-12-16·06:04:02.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/not-zip-safe14 -rw-r--r--···0·root·········(0)·root·········(0)········1·2019-02-28·05:25:37.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/not-zip-safe
15 -rw-r--r--···0·root·········(0)·root·········(0)·······47·2017-12-16·06:04:02.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/pbr.json15 -rw-r--r--···0·root·········(0)·root·········(0)·······46·2019-02-28·05:27:03.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/pbr.json
16 -rw-r--r--···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/requires.txt16 -rw-r--r--···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/requires.txt
17 -rw-r--r--···0·root·········(0)·root·········(0)·······10·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.4.egg-info/top_level.txt17 -rw-r--r--···0·root·········(0)·root·········(0)·······10·2019-07-24·23:44:41.000000·./usr/lib/python3/dist-packages/pygerrit2-2.0.9.egg-info/top_level.txt
18 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/share/18 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/share/
19 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/share/doc/19 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/share/doc/
20 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/share/doc/python3-pygerrit2/20 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2019-07-24·23:44:41.000000·./usr/share/doc/python3-pygerrit2/
21 -rw-r--r--···0·root·········(0)·root·········(0)······420·2019-07-24·23:44:41.000000·./usr/share/doc/python3-pygerrit2/changelog.Debian.gz21 -rw-r--r--···0·root·········(0)·root·········(0)······465·2019-07-24·23:44:41.000000·./usr/share/doc/python3-pygerrit2/changelog.Debian.gz
22 -rw-r--r--···0·root·········(0)·root·········(0)·····4357·2017-12-16·06:04:02.000000·./usr/share/doc/python3-pygerrit2/changelog.gz22 -rw-r--r--···0·root·········(0)·root·········(0)·····5741·2019-02-28·05:27:03.000000·./usr/share/doc/python3-pygerrit2/changelog.gz
23 -rw-r--r--···0·root·········(0)·root·········(0)·····1472·2019-07-24·23:44:41.000000·./usr/share/doc/python3-pygerrit2/copyright23 -rw-r--r--···0·root·········(0)·root·········(0)·····1472·2019-07-24·23:44:41.000000·./usr/share/doc/python3-pygerrit2/copyright
913 B
./usr/lib/python3/dist-packages/pygerrit2/__init__.py
    
Offset 18, 14 lines modifiedOffset 18, 22 lines modified
18 #·AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER18 #·AUTHORS·OR·COPYRIGHT·HOLDERS·BE·LIABLE·FOR·ANY·CLAIM,·DAMAGES·OR·OTHER
19 #·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM,19 #·LIABILITY,·WHETHER·IN·AN·ACTION·OF·CONTRACT,·TORT·OR·OTHERWISE,·ARISING·FROM,
20 #·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN20 #·OUT·OF·OR·IN·CONNECTION·WITH·THE·SOFTWARE·OR·THE·USE·OR·OTHER·DEALINGS·IN
21 #·THE·SOFTWARE.21 #·THE·SOFTWARE.
  
22 """Module·to·interface·with·Gerrit."""22 """Module·to·interface·with·Gerrit."""
  
 23 from·.rest·import·GerritRestAPI,·GerritReview
 24 from·requests.auth·import·HTTPBasicAuth,·HTTPDigestAuth
 25 from·.rest.auth·import·HTTPBasicAuthFromNetrc,·HTTPDigestAuthFromNetrc
  
 26 __all__·=·["GerritRestAPI",·"GerritReview",
 27 ···········"HTTPBasicAuth",·"HTTPDigestAuth",
 28 ···········"HTTPBasicAuthFromNetrc",·"HTTPDigestAuthFromNetrc"]
  
  
23 def·from_json(json_data,·key):29 def·from_json(json_data,·key):
24 ····"""Extract·values·from·JSON·data.30 ····"""Extract·values·from·JSON·data.
  
25 ····:arg·dict·json_data:·The·JSON·data31 ····:arg·dict·json_data:·The·JSON·data
26 ····:arg·str·key:·Key·to·get·data·for.32 ····:arg·str·key:·Key·to·get·data·for.
  
9.13 KB
./usr/lib/python3/dist-packages/pygerrit2/rest/__init__.py
    
Offset 22, 65 lines modifiedOffset 22, 63 lines modified
  
22 """Interface·to·the·Gerrit·REST·API."""22 """Interface·to·the·Gerrit·REST·API."""
  
23 import·json23 import·json
24 import·logging24 import·logging
25 import·requests25 import·requests
  
 26 from·.auth·import·HTTPBasicAuthFromNetrc
  
 27 logger·=·logging.getLogger("pygerrit2")
 28 fmt·=·"%(asctime)s-[%(name)s-%(levelname)s]·%(message)s"
 29 datefmt·=·"[%y-%m-%d·%H:%M:%S]"
 30 sh·=·logging.StreamHandler()
 31 sh.setLevel(logging.WARNING)
 32 sh.setFormatter(logging.Formatter(fmt,·datefmt))
 33 if·not·logger.handlers:
 34 ····logger.addHandler(sh)
  
26 GERRIT_MAGIC_JSON_PREFIX·=·")]}\'\n"35 GERRIT_MAGIC_JSON_PREFIX·=·")]}\'\n"
27 GERRIT_AUTH_SUFFIX·=·"/a"36 GERRIT_AUTH_SUFFIX·=·"/a"
 37 DEFAULT_HEADERS·=·{'Accept':·'application/json',
 38 ···················'Accept-Encoding':·'gzip'}
  
  
28 def·_decode_response(response):39 def·_decode_response(response):
29 ····"""Strip·off·Gerrit's·magic·prefix·and·decode·a·response.40 ····"""Strip·off·Gerrit's·magic·prefix·and·decode·a·response.
  
30 ····:returns:41 ····:returns:
31 ········Decoded·JSON·content·as·a·dict,·or·raw·text·if·content·could·not·be42 ········Decoded·JSON·content·as·a·dict,·or·raw·text·if·content·could·not·be
32 ········decoded·as·JSON.43 ········decoded·as·JSON.
  
33 ····:raises:44 ····:raises:
34 ········requests.HTTPError·if·the·response·contains·an·HTTP·error·status·code.45 ········requests.HTTPError·if·the·response·contains·an·HTTP·error·status·code.
  
35 ····"""46 ····"""
 47 ····content_type·=·response.headers.get('content-type',·'')
 48 ····logger.debug("status[%s]·content_type[%s]·encoding[%s]"·%
 49 ·················(response.status_code,·content_type,·response.encoding))
 50 ····response.raise_for_status()
36 ····content·=·response.content.strip()51 ····content·=·response.content.strip()
37 ····if·response.encoding:52 ····if·response.encoding:
38 ········content·=·content.decode(response.encoding)53 ········content·=·content.decode(response.encoding)
39 ····response.raise_for_status() 
40 ····content_type·=·response.headers.get('content-type',·'')54 ····if·not·content:
 55 ········logger.debug("no·content·in·response")
 56 ········return·content
41 ····if·content_type.split(';')[0]·!=·'application/json':57 ····if·content_type.split(';')[0]·!=·'application/json':
42 ········return·content58 ········return·content
43 ····if·content.startswith(GERRIT_MAGIC_JSON_PREFIX):59 ····if·content.startswith(GERRIT_MAGIC_JSON_PREFIX):
44 ········content·=·content[len(GERRIT_MAGIC_JSON_PREFIX):]60 ········content·=·content[len(GERRIT_MAGIC_JSON_PREFIX):]
45 ····try:61 ····try:
46 ········return·json.loads(content)62 ········return·json.loads(content)
47 ····except·ValueError:63 ····except·ValueError:
48 ········logging.error('Invalid·json·content:·%s',·content)64 ········logger.error('Invalid·json·content:·%s',·content)
49 ········raise65 ········raise
  
  
50 def·_merge_dict(result,·overrides): 
51 ····"""Deep-merge·dictionaries. 
  
52 ····:arg·dict·result:·The·resulting·dictionary 
53 ····:arg·dict·overrides:·Dictionay·being·merged·into·the·result 
  
54 ····:returns: 
55 ········The·resulting·dictionary 
  
56 ····""" 
57 ····for·key·in·overrides: 
58 ········if·(key·in·result·and 
59 ················isinstance(result[key],·dict)·and 
60 ················isinstance(overrides[key],·dict)): 
61 ············_merge_dict(result[key],·overrides[key]) 
62 ········else: 
63 ············result[key]·=·overrides[key] 
64 ····return·result 
  
  
65 class·GerritRestAPI(object):66 class·GerritRestAPI(object):
66 ····"""Interface·to·the·Gerrit·REST·API.67 ····"""Interface·to·the·Gerrit·REST·API.
  
67 ····:arg·str·url:·The·full·URL·to·the·server,·including·the·`http(s)://`68 ····:arg·str·url:·The·full·URL·to·the·server,·including·the·`http(s)://`
68 ········prefix.·If·`auth`·is·given,·`url`·will·be·automatically·adjusted·to69 ········prefix.·If·`auth`·is·given,·`url`·will·be·automatically·adjusted·to
69 ········include·Gerrit's·authentication·suffix.70 ········include·Gerrit's·authentication·suffix.
70 ····:arg·auth:·(optional)·Authentication·handler.··Must·be·derived·from71 ····:arg·auth:·(optional)·Authentication·handler.··Must·be·derived·from
Offset 88, 33 lines modifiedOffset 86, 39 lines modified
88 ····:arg·boolean·verify:·(optional)·Set·to·False·to·disable·verification·of86 ····:arg·boolean·verify:·(optional)·Set·to·False·to·disable·verification·of
89 ········SSL·certificates.87 ········SSL·certificates.
  
90 ····"""88 ····"""
  
91 ····def·__init__(self,·url,·auth=None,·verify=True):89 ····def·__init__(self,·url,·auth=None,·verify=True):
92 ········"""See·class·docstring."""90 ········"""See·class·docstring."""
93 ········headers·=·{'Accept':·'application/json', 
94 ···················'Accept-Encoding':·'gzip'} 
95 ········self.kwargs·=·{'auth':·auth,91 ········self.kwargs·=·{'auth':·auth,
96 ·······················'verify':·verify,92 ·······················'verify':·verify}
97 ·······················'headers':·headers} 
98 ········self.url·=·url.rstrip('/')93 ········self.url·=·url.rstrip('/')
99 ········self.session·=·requests.session()94 ········self.session·=·requests.session()
  
 95 ········if·not·auth:
 96 ············try:
 97 ················auth·=·HTTPBasicAuthFromNetrc(url)
 98 ············except·ValueError:
 99 ················pass
  
100 ········if·auth:100 ········if·auth:
101 ············if·not·isinstance(auth,·requests.auth.AuthBase):101 ············if·not·isinstance(auth,·requests.auth.AuthBase):
102 ················raise·ValueError('Invalid·auth·type;·must·be·derived·'102 ················raise·ValueError('Invalid·auth·type;·must·be·derived·'
103 ·································'from·requests.auth.AuthBase')103 ·································'from·requests.auth.AuthBase')
  
104 ············if·not·self.url.endswith(GERRIT_AUTH_SUFFIX):104 ············if·not·self.url.endswith(GERRIT_AUTH_SUFFIX):
105 ················self.url·+=·GERRIT_AUTH_SUFFIX105 ················self.url·+=·GERRIT_AUTH_SUFFIX
106 ········else:106 ········else:
107 ············if·self.url.endswith(GERRIT_AUTH_SUFFIX):107 ············if·self.url.endswith(GERRIT_AUTH_SUFFIX):
108 ················self.url·=·self.url[:·-·len(GERRIT_AUTH_SUFFIX)]108 ················self.url·=·self.url[:·-·len(GERRIT_AUTH_SUFFIX)]
  
 109 ········#·Keep·a·copy·of·the·auth,·only·needed·for·tests
 110 ········self.auth·=·auth
  
109 ········if·not·self.url.endswith('/'):111 ········if·not·self.url.endswith('/'):
110 ············self.url·+=·'/'112 ············self.url·+=·'/'
  
111 ····def·make_url(self,·endpoint):113 ····def·make_url(self,·endpoint):
112 ········"""Make·the·full·url·for·the·endpoint.114 ········"""Make·the·full·url·for·the·endpoint.
  
113 ········:arg·str·endpoint:·The·endpoint.115 ········:arg·str·endpoint:·The·endpoint.
Max diff block lines reached; 4972/9234 bytes (53.84%) of diff not shown.
1.21 KB
./usr/lib/python3/dist-packages/pygerrit2/rest/auth.py
    
Offset 22, 29 lines modifiedOffset 22, 33 lines modified
  
22 """Authentication·handlers."""22 """Authentication·handlers."""
  
23 from·requests.auth·import·HTTPDigestAuth,·HTTPBasicAuth23 from·requests.auth·import·HTTPDigestAuth,·HTTPBasicAuth
24 from·requests.utils·import·get_netrc_auth24 from·requests.utils·import·get_netrc_auth
  
  
 25 def·_get_netrc_auth(url):
 26 ····return·get_netrc_auth(url)
  
  
25 class·HTTPDigestAuthFromNetrc(HTTPDigestAuth):27 class·HTTPDigestAuthFromNetrc(HTTPDigestAuth):
26 ····"""HTTP·Digest·Auth·with·netrc·credentials."""28 ····"""HTTP·Digest·Auth·with·netrc·credentials."""
  
27 ····def·__init__(self,·url):29 ····def·__init__(self,·url):
28 ········"""See·class·docstring."""30 ········"""See·class·docstring."""
29 ········auth·=·get_netrc_auth(url)31 ········auth·=·_get_netrc_auth(url)
30 ········if·not·auth:32 ········if·not·auth:
31 ············raise·ValueError("netrc·missing·or·no·credentials·found·in·netrc")33 ············raise·ValueError("netrc·missing·or·no·credentials·found·in·netrc")
32 ········username,·password·=·auth34 ········username,·password·=·auth
33 ········super(HTTPDigestAuthFromNetrc,·self).__init__(username,·password)35 ········super(HTTPDigestAuthFromNetrc,·self).__init__(username,·password)
  
  
34 class·HTTPBasicAuthFromNetrc(HTTPBasicAuth):36 class·HTTPBasicAuthFromNetrc(HTTPBasicAuth):
35 ····"""HTTP·Basic·Auth·with·netrc·credentials."""37 ····"""HTTP·Basic·Auth·with·netrc·credentials."""
  
36 ····def·__init__(self,·url):38 ····def·__init__(self,·url):
37 ········"""See·class·docstring."""39 ········"""See·class·docstring."""
38 ········auth·=·get_netrc_auth(url)40 ········auth·=·_get_netrc_auth(url)
39 ········if·not·auth:41 ········if·not·auth:
40 ············raise·ValueError("netrc·missing·or·no·credentials·found·in·netrc")42 ············raise·ValueError("netrc·missing·or·no·credentials·found·in·netrc")
41 ········username,·password·=·auth43 ········username,·password·=·auth
42 ········super(HTTPBasicAuthFromNetrc,·self).__init__(username,·password)44 ········super(HTTPBasicAuthFromNetrc,·self).__init__(username,·password)
795 B
./usr/share/doc/python3-pygerrit2/changelog.Debian.gz
689 B
changelog.Debian
    
Offset 1, 12 lines modifiedOffset 1, 14 lines modified
1 python-pygerrit2·(2.0.4-2~jan+unchanged1)·unchanged;·urgency=medium1 python-pygerrit2·(2.0.9-1~jan+nur1)·fresh-releases;·urgency=medium
  
 2 ··*·New·upstream·release.
 3 ··*·Add·missing·build·dependency·on·python3-mock.
2 ··*·Build·for·debian-janitor·apt·repository.4 ··*·Build·for·debian-janitor·apt·repository.
  
3 ·--·Debian·Janitor·<janitor@jelmer.uk>··Sun,·26·Jan·2020·09:11:43·+00005 ·--·Debian·Janitor·<janitor@jelmer.uk>··Sun,·26·Jan·2020·09:08:47·+0000
  
4 python-pygerrit2·(2.0.4-2)·unstable;·urgency=medium6 python-pygerrit2·(2.0.4-2)·unstable;·urgency=medium
  
5 ··*·Team·upload.7 ··*·Team·upload.
6 ··*·d/control:·Set·Vcs-*·to·salsa.debian.org8 ··*·d/control:·Set·Vcs-*·to·salsa.debian.org
7 ··*·Convert·git·repository·from·git-dpm·to·gbp·layout9 ··*·Convert·git·repository·from·git-dpm·to·gbp·layout
8 ··*·Use·debhelper-compat·instead·of·debian/compat.10 ··*·Use·debhelper-compat·instead·of·debian/compat.
4.86 KB
./usr/share/doc/python3-pygerrit2/changelog.gz
4.77 KB
changelog
    
Offset 1, 10 lines modifiedOffset 1, 139 lines modified
1 CHANGES1 CHANGES
2 =======2 =======
  
 3 2.0.9
 4 -----
  
 5 *·Run·livetests·against·2.15.11·and·2.16.6
 6 *·Don't·attempt·to·parse·empty·response·content
 7 *·Raise·exception·for·error·status·before·attempting·to·parse·content
 8 *·Add·debug·log·of·response·content·type,·status·code·and·encoding
 9 *·Add·a·test·for·PUT·request·with·a·json·file
 10 *·Bump·pytest·from·4.2.1·to·4.3.0
 11 *·Bump·pytest·from·4.2.0·to·4.2.1
 12 *·Run·live·tests·against·2.15.10·and·2.16.5
 13 *·Bump·pytest·from·4.1.1·to·4.2.0
 14 *·Fixed·an·issue·with·duplicate·output·log·message
 15 *·Run·livetests·against·2.15.9·and·2.16.4
 16 *·Set·logger·format·and·name
 17 *·Run·livetests·with·2.14.18,·2.15.8·and·2.16.3
 18 *·Bump·pytest·from·4.1.0·to·4.1.1
 19 *·Bump·pytest·from·4.0.2·to·4.1.0
 20 *·Run·livetests·with·2.16.2
 21 *·Bump·pytest·from·4.0.1·to·4.0.2
 22 *·Add·dependabot·badge·on·the·pypi·description·file
 23 *·Run·livetests·against·2.16.1
 24 *·Bump·requests·from·2.20.1·to·2.21.0
 25 *·Bump·pytest·from·4.0.0·to·4.0.1
 26 *·Drop·livetests·against·2.13.x
 27 *·Run·livetests·against·2.16·final·release
 28 *·Bump·pytest·from·3.10.1·to·4.0.0
 29 *·Remove·unnecessary·warning·log
 30 *·Run·livetests·against·2.14.17·and·2.15.7
 31 *·Bump·pytest·from·3.10.0·to·3.10.1
  
 32 2.0.8
 33 -----
  
 34 *·Bump·requests·from·2.20.0·to·2.20.1
 35 *·Run·livetests·against·2.16-rc3
 36 *·Bump·pbr·from·5.1.0·to·5.1.1
 37 *·Bump·pytest·from·3.9.3·to·3.10.0
 38 *·Run·livetests·against·2.16-rc1
 39 *·CVE-2018-18074:·Upgrade·requests·to·>=2.20.0
 40 *·Run·livetests·against·2.16-rc0
 41 *·Bump·pytest·from·3.9.2·to·3.9.3
 42 *·Run·livetests·against·2.14.16·and·2.15.6
 43 *·Bump·pbr·from·5.0.0·to·5.1.0
 44 *·Bump·pytest·from·3.9.1·to·3.9.2
 45 *·Add·dependabot·status·badge
 46 *·Bump·pytest·from·3.8.2·to·3.9.1
 47 *·Bump·pydocstyle·from·2.1.1·to·3.0.0
 48 *·Bump·pbr·from·4.2.0·to·4.3.0
 49 *·Run·livetests·against·2.14.14·and·2.15.4
 50 *·Bump·pytest·from·3.8.1·to·3.8.2
 51 *·Bump·pytest·from·3.8.0·to·3.8.1
 52 *·Run·livetests·against·2.14.13
 53 *·Run·livetests·against·2.14.12
 54 *·Bump·pytest·from·3.7.4·to·3.8.0
 55 *·Bump·pytest·from·3.7.3·to·3.7.4
 56 *·Update·dependencies
 57 *·Run·livetests·with·Gerrit·2.14.11
 58 *·Update·Programming·Language·classifiers
  
 59 2.0.7
 60 -----
  
 61 *·Run·livetests·with·Gerrit·2.15.3
 62 *·Update·pipenv
 63 *·Run·livetests·with·Gerrit·2.14.10
 64 *·Allow·data·to·be·sent·as·\`dict\`·and·automatically·convert·it·to·\`json\`
 65 *·Travis:·Also·test·with·Python·3.7
 66 *·Run·style·checks·before·livetests·and·unit·tests
 67 *·livetests:·Remove·redundant·comments
 68 *·README:·Tested·on·OSX·with·Python·3.7
 69 *·README:·Add·brief·info·about·history·and·difference·from·pygerrit
 70 *·Update·Pipfile·dependencies
 71 *·Allow·requests·up·to·version·2.19.1
 72 *·Update·livetests·to·use·2.14.9
 73 *·Add·back·an·RST·version·of·the·project·description
  
 74 2.0.6
 75 -----
  
 76 *·Test·that·an·exception·is·raised·for·invalid·auth·type
 77 *·Default·to·HTTP·basic·auth·from·netrc·when·auth·is·not·specified
 78 *·Add·tests·for·HTTP{Basic|Digest}AuthFromNetrc·classes
 79 *·Use·svg·versions·of·shields.io·badges
 80 *·Remove·unused·'requests'·link·from·README
 81 *·Update·prerequisites
 82 *·No·need·to·mention·dependency·on·'requests'·in·the·README
 83 *·Update·Gerrit·documentation·link·to·2.15.2
 84 *·Update·sample·code·in·README
 85 *·Add·build·status·badge
 86 *·Add·a·test·to·confirm·that·GET·works·with·patch·zip·file
 87 *·flake8:·Add·back·the·line·length·parameter
 88 *·Make·all·useful·classes·importable·from·root·package
 89 *·Simplify·setup·and·tests
 90 *·Add·Travis·CI·config
 91 *·Add·.pytest\_cache/·to·.gitignore
 92 *·Add·Pipfile
 93 *·Wrap·livetests·inside·a·class·and·separate·to·individual·test·methods
 94 *·tox:·Add·missing·-s·on·pytest·commands
 95 *·Bump·pytest·from·3.6.0·to·3.6.1
 96 *·Update·compatibility·section·in·README
 97 *·Fix·author·email·field
 98 *·Metadata:·Promote·development·status·to·production/stable
 99 *·Metadata:·Add·topic·classifier
 100 *·Metadata:·Add·operating·system·classifiers,·and·platform·field
 101 *·Remove·README.rst
 102 *·Metadata:·Add·'information·technology'·to·intended·audience·classifier
 103 *·Metadata:·Update·programming·language·classifiers
 104 *·Metadata:·Add·a·couple·more·keywords
 105 *·Metadata:·Fix·keywords·field·formatting
  
 106 2.0.5
 107 -----
  
 108 *·Only·run·livetests·with·tox·in·py36·environment
 109 *·Update·tox·environments
 110 *·Run·pytest·in·tox
 111 *·Use·Gerrit·2.13.11·from·gerritcodereview/gerrit
 112 *·Allow·override·of·kwargs·in·get
 113 *·Add·livetests·for·2.13.11
 114 *·Refactor·livetest·to·make·use·of·pytest·parameterization
 115 *·Abstract·creation·of·Gerrit·docker·container·into·GerritContainer
 116 *·Run·live·server·tests·against·Gerrit·running·in·Docker·container
 117 *·Invoke·tests·with·pytest
Max diff block lines reached; 210/4863 bytes (4.32%) of diff not shown.