Skip to content

Commit 1e73d97

Browse files
committed
No textwrap.indent in python 2 :(
1 parent d00327b commit 1e73d97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsonschema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ def __unicode__(self):
130130
""") % (
131131
self.__class__.__name__, self.message,
132132
self.validator, schema_path,
133-
textwrap.indent(pschema, " " * 8),
133+
'\n'.join(" " * 8 + line for line in pschema.splitlines()),
134134
path,
135-
textwrap.indent(pinstance, " " * 8)
135+
'\n'.join(" " * 8 + line for line in pinstance.splitlines()),
136136
)
137137

138138
if PY3:

0 commit comments

Comments
 (0)