Skip to content

Commit

Permalink
Fix a typo in the name of the class (indico#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
mic4ael authored and renefs committed Nov 15, 2024
1 parent b5119af commit 9b7661f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newdle/core/webargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ def _strip_whitespace(value):
return value


class WhitspaceStrippingFlaskParser(flaskparser.FlaskParser):
class WhitespaceStrippingFlaskParser(flaskparser.FlaskParser):
def pre_load(self, location_data, *, schema, req, location):
if location in ('query', 'form', 'json'):
return _strip_whitespace(location_data)
return location_data


parser = WhitspaceStrippingFlaskParser(unknown=EXCLUDE)
parser = WhitespaceStrippingFlaskParser(unknown=EXCLUDE)


@parser.error_handler
Expand Down

0 comments on commit 9b7661f

Please sign in to comment.