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