142
140
'%r of type %s is not a plain string' % (l, type(l))
143
141
return [line.encode('utf-8') for line in r]
145
148
def _escape_path(self, path):
146
149
assert not contains_linebreaks(path)
147
150
return unicode(path.replace('\\', '/').replace(' ', '\ '))