Skip to content

Commit

Permalink
Use !r instead of !s.
Browse files Browse the repository at this point in the history
  • Loading branch information
berkerpeksag committed Nov 2, 2014
1 parent 0ea9def commit 34e5e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_exception.py
Expand Up @@ -4,6 +4,6 @@ def __init__(self, zone):
self.zone = zone

def __str__(self):
return "There is no time zone called '{!s}'".format(self.zone)
return "There is no time zone called {!r}".format(self.zone)

raise UnknownTimeZoneError('Istanbul')

0 comments on commit 34e5e2c

Please sign in to comment.