0024-misc-fix-raising-format-tuple-pylint-error-56288.patch
combo/utils/urls.py | ||
---|---|---|
62 | 62 |
if varname == '[': |
63 | 63 |
return '[' |
64 | 64 |
if varname not in template_vars: |
65 |
raise TemplateError('unknown variable %s', varname)
|
|
65 |
raise TemplateError('unknown variable %s' % varname)
|
|
66 | 66 |
return force_text(template_vars[varname]) |
67 | 67 | |
68 | 68 |
return re.sub(r'(\[.+?\])', repl, url) |
69 |
- |