equal
deleted
inserted
replaced
44 return "utf-8" |
44 return "utf-8" |
45 # On the Python 3 versions we support, sys.getfilesystemencoding never |
45 # On the Python 3 versions we support, sys.getfilesystemencoding never |
46 # returns None. |
46 # returns None. |
47 return sys.getfilesystemencoding() |
47 return sys.getfilesystemencoding() |
48 |
48 |
49 |
|
50 else: |
49 else: |
51 # Python 2 doesn't support surrogateescape, so use 'strict' by |
50 # Python 2 doesn't support surrogateescape, so use 'strict' by |
52 # default. Users can register a custom surrogateescape error handler and use |
51 # default. Users can register a custom surrogateescape error handler and use |
53 # that if they so desire. |
52 # that if they so desire. |
54 default_local_errors = "strict" |
53 default_local_errors = "strict" |