Skip to content

Commit

Permalink
More cosmetics.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Koshkin committed Sep 29, 2018
1 parent 6ab1fe2 commit d57eafa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions watch/core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import copy
import abc



# this should provide watch.builtins, which on its own
Expand All @@ -15,7 +17,7 @@ def __getattr__(self, attribute):
if attribute == "field_name":
raise TypeError(
"In order to use %s as a descriptor-validator, you should "
"inherit your class from watch.WatchMe." % repr(self)
"inherit your class from watch.WatchMe type." % repr(self)
)
return super().__getattribute__(attribute)

Expand Down Expand Up @@ -147,7 +149,7 @@ def __setattr__(self, attr_name, attr_value):

def generate_error_message(self, field_name, value):
return (
"Failed to set attribute '%s' of object %s to be %s." %
"watch: Failed to set attribute '%s' of object %s to be %s." %
(
field_name, object.__repr__(self), value
)
Expand Down

0 comments on commit d57eafa

Please sign in to comment.