comparison hgext/fsmonitor/pywatchman/encoding.py @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 493034cc3265
children ca7bde5dbafb
comparison
equal deleted inserted replaced
51699:bd1483fd7088 51700:7f0cb9ee0534
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
49 else: 50 else:
50 # Python 2 doesn't support surrogateescape, so use 'strict' by 51 # Python 2 doesn't support surrogateescape, so use 'strict' by
51 # default. Users can register a custom surrogateescape error handler and use 52 # default. Users can register a custom surrogateescape error handler and use
52 # that if they so desire. 53 # that if they so desire.
53 default_local_errors = "strict" 54 default_local_errors = "strict"