150
151
def _escape_path(self, path):
153
153
return unicode(path.replace('\\', '/').replace(' ', '\ '))
155
155
def _entry_to_line(self, path, ie):
156
156
"""Turn an inventory entry into a testament line"""
162
162
# TODO: avoid switching on kind
167
166
elif ie.kind == 'symlink':
170
168
content = self._escape_path(ie.symlink_target)