Werkzeug now supports signed values viasigned=True for its IntegerConverter, so the workaround introduced in ea9bbc2 is unnecessary.
Relevant lines:
|
class IntegerConverter(BaseIntegerConverter): |
|
"""IntegerConverter supporting negative values |
|
|
|
This is a Modification of the standard IntegerConverter which does |
|
not support negative values. See the corresponding `werkzeug |
|
documentation |
|
<http://werkzeug.pocoo.org/docs/0.10/routing/#werkzeug.routing.IntegerConverter>`_. |
|
""" |
|
regex = r'-?\d+' |
|
app.url_map.converters['int'] = IntegerConverter |
Werkzeug now supports signed values via
signed=Truefor itsIntegerConverter, so the workaround introduced in ea9bbc2 is unnecessary.Relevant lines:
sipa/sipa/base.py
Lines 19 to 27 in 1d5547b
sipa/sipa/initialization.py
Line 57 in b8d1188