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