diff options
Diffstat (limited to 'examples/shapes.py')
-rw-r--r-- | examples/shapes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shapes.py b/examples/shapes.py index b5a0ebd..c5f4867 100644 --- a/examples/shapes.py +++ b/examples/shapes.py @@ -15,7 +15,7 @@ class Shape(object): raise NotImplementedException()
def __str__(self):
- return "<%s>: %s" % (self.__class__.__name__, self.__dict__)
+ return "<{}>: {}".format(self.__class__.__name__, self.__dict__)
class Square(Shape):
def area(self):
|