Skip to content

Commit d98de9b

Browse files
committed
Merge pull request #42 from farshidce/issue41-fix
fix-#41 : lazy_format __str__ function should return the formatted string
2 parents 695ae17 + 92603a4 commit d98de9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_jsonschema_objects/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def __init__(self, fmt, *args, **kwargs):
1212
self.kwargs = kwargs
1313

1414
def __str__(self):
15-
self.fmt.format(*self.args, **self.kwargs)
15+
return self.fmt.format(*self.args, **self.kwargs)
1616

1717

1818
def safe_issubclass(x, y):

0 commit comments

Comments
 (0)