Skip to content

Commit

Permalink
Remove dead code after Pylons/colander#264
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Dec 18, 2023
1 parent 36a31ee commit bac86a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions kinto/core/resource/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,6 @@ def deserialize(self, cstruct=colander.null):
values = {}

schema_values = super().deserialize(cstruct)
if schema_values is colander.drop:
return schema_values

# Deserialize querystring field filters (see docstring e.g)
for k, v in cstruct.items():
Expand Down
4 changes: 0 additions & 4 deletions kinto/schema_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ def schema_type(self, **kw):
def deserialize(self, cstruct=colander.null):
# Start by deserializing a simple mapping.
validated = super().deserialize(cstruct)

# In case it is optional in parent schema.
if not validated or validated in (colander.null, colander.drop):
return validated
try:
check_schema(validated)
except ValidationError as e:
Expand Down

0 comments on commit bac86a6

Please sign in to comment.