From 92603a41cf4a94e3b76b3cad7a83d4bc86b14223 Mon Sep 17 00:00:00 2001 From: Farshid Ghods Date: Wed, 6 Apr 2016 09:05:37 -0700 Subject: [PATCH] fix#41:lazy_format __str__ function should return the formatted string --- python_jsonschema_objects/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_jsonschema_objects/util.py b/python_jsonschema_objects/util.py index de90f9c..c8b1cad 100644 --- a/python_jsonschema_objects/util.py +++ b/python_jsonschema_objects/util.py @@ -12,7 +12,7 @@ def __init__(self, fmt, *args, **kwargs): self.kwargs = kwargs def __str__(self): - self.fmt.format(*self.args, **self.kwargs) + return self.fmt.format(*self.args, **self.kwargs) def safe_issubclass(x, y):