Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgwebdir_mod.py @ 34486:a57c938e7ac8
style: never use a space before a colon or comma
Differential Revision: https://phab.mercurial-scm.org/D954
author | Alex Gaynor <agaynor@mozilla.com> |
---|---|
date | Fri, 29 Sep 2017 15:48:34 +0000 |
parents | 8cbcee0b923d |
children | 8afc25e7effc |
comparison
equal
deleted
inserted
replaced
34485:37b7581e5737 | 34486:a57c938e7ac8 |
---|---|
318 allowed = ui.configlist("web", "allow_archive", untrusted=True) | 318 allowed = ui.configlist("web", "allow_archive", untrusted=True) |
319 archives = [] | 319 archives = [] |
320 for typ, spec in hgweb_mod.archivespecs.iteritems(): | 320 for typ, spec in hgweb_mod.archivespecs.iteritems(): |
321 if typ in allowed or ui.configbool("web", "allow" + typ, | 321 if typ in allowed or ui.configbool("web", "allow" + typ, |
322 untrusted=True): | 322 untrusted=True): |
323 archives.append({"type" : typ, "extension": spec[2], | 323 archives.append({"type": typ, "extension": spec[2], |
324 "node": nodeid, "url": url}) | 324 "node": nodeid, "url": url}) |
325 return archives | 325 return archives |
326 | 326 |
327 def rawentries(subdir="", **map): | 327 def rawentries(subdir="", **map): |
328 | 328 |