comparison hgext/fsmonitor/pywatchman/encoding.py @ 51690:493034cc3265

black: format the codebase with 23.3.0 The CI has moved to 23.3.0, which is the last version that supports 3.7 at runtime, so we should honor this change. # skip-blame mass-reformating only
author Raphaël Gomès <rgomes@octobus.net>
date Thu, 18 Jul 2024 12:36:12 +0200
parents f58f955adad4
children 7f0cb9ee0534
comparison
equal deleted inserted replaced
51689:39e2b2d062c1 51690:493034cc3265
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"