Merge pull request #48 from garyvdm/master

Fix minor bug in error message text.
This commit is contained in:
Chris McDonough
2012-04-05 07:22:45 -07:00
2 changed files with 2 additions and 1 deletions

View File

@@ -106,3 +106,4 @@ Contributors
- Mathieu Le Marec - Pasquet (kiorky), 2011/07/11
- Atsushi Odagiri, 2012/02/04
- Daniel Nouri, 2012/03/28
- Gary van der Merwe, 2012/04/05

View File

@@ -371,7 +371,7 @@ class SchemaType(object):
raise AssertionError("Can't call 'set_value' on a leaf node.")
def get_value(self, node, appstruct, path):
raise AssertionError("Can't call 'set_value' on a leaf node.")
raise AssertionError("Can't call 'get_value' on a leaf node.")
class Mapping(SchemaType):
""" A type which represents a mapping of names to nodes.