Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions six.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,13 +785,13 @@ def write(data):
if isinstance(sep, unicode):
want_unicode = True
elif not isinstance(sep, str):
raise TypeError("sep must be None or a string")
raise TypeError("sep must be None or a string, not {0!r}".format(type(sep)))
end = kwargs.pop("end", None)
if end is not None:
if isinstance(end, unicode):
want_unicode = True
elif not isinstance(end, str):
raise TypeError("end must be None or a string")
raise TypeError("end must be None or a string, not {0!r}".format(type(end)))
if kwargs:
raise TypeError("invalid keyword arguments to print()")
if not want_unicode:
Expand Down