Show More
@@ -232,16 +232,19 b' Supported arguments:' | |||
|
232 | 232 | argument, q.v., is then subsequently consulted. |
|
233 | 233 | ``username`` |
|
234 | 234 | Optional. Username to authenticate with. If not given, and the |
|
235 | remote site requires basic or digest authentication, the user | |
|
236 | will be prompted for it. | |
|
235 | remote site requires basic or digest authentication, the user will | |
|
236 | be prompted for it. Environment variables are expanded in the | |
|
237 | username letting you do ``foo.username = $USER``. | |
|
237 | 238 | ``password`` |
|
238 | 239 | Optional. Password to authenticate with. If not given, and the |
|
239 | 240 | remote site requires basic or digest authentication, the user |
|
240 | 241 | will be prompted for it. |
|
241 | 242 | ``key`` |
|
242 | Optional. PEM encoded client certificate key file. | |
|
243 | Optional. PEM encoded client certificate key file. Environment | |
|
244 | variables are expanded in the filename. | |
|
243 | 245 | ``cert`` |
|
244 | Optional. PEM encoded client certificate chain file. | |
|
246 | Optional. PEM encoded client certificate chain file. Environment | |
|
247 | variables are expanded in the filename. | |
|
245 | 248 | ``schemes`` |
|
246 | 249 | Optional. Space separated list of URI schemes to use this |
|
247 | 250 | authentication entry with. Only used if the prefix doesn't include |
@@ -156,7 +156,8 b' class passwordmgr(urllib2.HTTPPasswordMg' | |||
|
156 | 156 | continue |
|
157 | 157 | group, setting = key.split('.', 1) |
|
158 | 158 | gdict = config.setdefault(group, dict()) |
|
159 | val = util.expandpath(val) | |
|
159 | if setting in ('username', 'cert', 'key'): | |
|
160 | val = util.expandpath(val) | |
|
160 | 161 | gdict[setting] = val |
|
161 | 162 | |
|
162 | 163 | # Find the best match |
General Comments 0
You need to be logged in to leave comments.
Login now