Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgweb_mod.py @ 22200:b27c3beaaf30
cleanup: avoid local vars shadowing imports
This will mute some pyflakes "import ... shadowed by loop variable" warnings.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 15 Aug 2014 16:20:47 +0200 |
parents | af62f0280a76 |
children | c39d404f0eb0 |
comparison
equal
deleted
inserted
replaced
22199:b3e51675f98e | 22200:b27c3beaaf30 |
---|---|
390 'gz': ('application/x-gzip', 'tgz', '.tar.gz', None), | 390 'gz': ('application/x-gzip', 'tgz', '.tar.gz', None), |
391 'zip': ('application/zip', 'zip', '.zip', None), | 391 'zip': ('application/zip', 'zip', '.zip', None), |
392 } | 392 } |
393 | 393 |
394 def check_perm(self, req, op): | 394 def check_perm(self, req, op): |
395 for hook in permhooks: | 395 for permhook in permhooks: |
396 hook(self, req, op) | 396 permhook(self, req, op) |