mercurial/hgweb/request.py
changeset 34513 34fcb0f66837
parent 34512 482d6f6dba91
child 34514 528b21b853aa
equal deleted inserted replaced
34512:482d6f6dba91 34513:34fcb0f66837
    37     'static': [('cmd', ['static']), ('file', None)]
    37     'static': [('cmd', ['static']), ('file', None)]
    38 }
    38 }
    39 
    39 
    40 def normalize(form):
    40 def normalize(form):
    41     # first expand the shortcuts
    41     # first expand the shortcuts
    42     for k in shortcuts.iterkeys():
    42     for k in shortcuts:
    43         if k in form:
    43         if k in form:
    44             for name, value in shortcuts[k]:
    44             for name, value in shortcuts[k]:
    45                 if value is None:
    45                 if value is None:
    46                     value = form[k]
    46                     value = form[k]
    47                 form[name] = value
    47                 form[name] = value