Skip to content

Remove custom IntegerConverter #438

@lukasjuhrich

Description

@lukasjuhrich

Werkzeug now supports signed values viasigned=True for its IntegerConverter, so the workaround introduced in ea9bbc2 is unnecessary.

Relevant lines:

sipa/sipa/base.py

Lines 19 to 27 in 1d5547b

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions