Merge pull request #1338 from blueyed/immutable-typeerror-fix-wording

Fix wording with TypeError in ImmutableObject.replace
This commit is contained in:
Stein Magnus Jodal 2015-11-28 23:01:15 +01:00
commit 22b18a46d1

View File

@ -112,7 +112,7 @@ class ImmutableObject(object):
for key, value in kwargs.items():
if not self._is_valid_field(key):
raise TypeError(
'copy() got an unexpected keyword argument "%s"' % key)
'replace() got an unexpected keyword argument "%s"' % key)
other._set_field(key, value)
return other