]> arthur.barton.de Git - bup.git/blob - lib/bup/io.py
Stop forcing LC_CTYPE=ISO-8859-1
[bup.git] / lib / bup / io.py
1
2 from __future__ import absolute_import, print_function
3
4 from bup import compat
5
6
7 if compat.py_maj > 2:
8     def byte_stream(file):
9         return file.buffer
10 else:
11     def byte_stream(file):
12         return file
13
14
15 def path_msg(x):
16     """Return a string representation of a path."""
17     # FIXME: configurability (might git-config quotePath be involved?)
18     return x.decode(errors='backslashreplace')