Dulwich.io dulwich / e6fc635
Fix warning message. Jelmer Vernooń≥ 13 days ago
2 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
567567 # Our filename isn't supported by the platform :(
568568 import warnings
569569 warnings.warn(
570 'Unable to write ile %s: %s', full_path, e.strerror)
570 'Unable to write file %s: %s' %
571 (full_path, e.strerror))
571572 continue
572573 else:
573574 raise
206206 repopath = os.fsencode(repopath)
207207 treepath = os.path.relpath(path, repopath)
208208 if treepath.startswith(b'..'):
209 raise ValueError('Path not in repo')
209 raise ValueError('Path %r not in repo path (%r)' % (path, repopath))
210210 if os.path.sep != '/':
211211 treepath = treepath.replace(os.path.sep.encode('ascii'), b'/')
212212 return treepath