Permalink
Browse files

Revert 26220c9 Remove dead code

  • Loading branch information...
1 parent b89cc79 commit 127ad3d040009d03973b50c4b105e698a7635440 @keleshev committed Sep 24, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 schema.py
View
@@ -121,6 +121,8 @@ def validate(self, data):
required = set(k for k in s if type(k) is not Optional)
if coverage != required:
raise SchemaError('missed keys %r' % (required - coverage), e)
+ if len(new) != len(data):
+ raise SchemaError('wrong keys %r in %r' % (new, data), e)
return new
if hasattr(s, 'validate'):
try:

0 comments on commit 127ad3d

Please sign in to comment.