Mercurial > hg
comparison mercurial/hgweb/hgweb_mod.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | d6512b3e9ac0 |
children | 13a1b2fb7ef2 |
comparison
equal
deleted
inserted
replaced
10281:e7d3b509af8b | 10282:08a0f04b56bd |
---|---|
134 | 134 |
135 cmd = args.pop(0) | 135 cmd = args.pop(0) |
136 style = cmd.rfind('-') | 136 style = cmd.rfind('-') |
137 if style != -1: | 137 if style != -1: |
138 req.form['style'] = [cmd[:style]] | 138 req.form['style'] = [cmd[:style]] |
139 cmd = cmd[style+1:] | 139 cmd = cmd[style + 1:] |
140 | 140 |
141 # avoid accepting e.g. style parameter as command | 141 # avoid accepting e.g. style parameter as command |
142 if hasattr(webcommands, cmd): | 142 if hasattr(webcommands, cmd): |
143 req.form['cmd'] = [cmd] | 143 req.form['cmd'] = [cmd] |
144 else: | 144 else: |