From 34e5e2ccfcdbe195dfafef9be455563b06f7772c Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sun, 2 Nov 2014 17:34:07 +0200 Subject: [PATCH] Use !r instead of !s. --- custom_exception.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_exception.py b/custom_exception.py index 3b9dfe3..ae6eb4a 100644 --- a/custom_exception.py +++ b/custom_exception.py @@ -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')