Skip to content

Commit

Permalink
Fix repr of "Attribute" to look like before
Browse files Browse the repository at this point in the history
and as usual in Python.
  • Loading branch information
jensens committed Feb 15, 2020
1 parent 447121d commit 1668c8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@
Like the above, this will break consumers depending on the exact
output of error messages if more than one error is present.

- Fix repr of "Attribute" to look like before and as usual in Python.


4.7.1 (2019-11-11)
==================

Expand Down
2 changes: 1 addition & 1 deletion src/zope/interface/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def __str__(self):
return of + self.__name__ + self._get_str_info()

def __repr__(self):
return "<%s.%s at 0x%x %s>" % (
return "<%s.%s object at 0x%x %s>" % (
type(self).__module__,
type(self).__name__,
id(self),
Expand Down

0 comments on commit 1668c8a

Please sign in to comment.