Fix wording with TypeError in ImmutableObject.replace

This commit is contained in:
Daniel Hahler 2015-11-28 23:00:28 +01:00
parent cc3ec5e218
commit fa817dee35

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