comparison hgext/fsmonitor/pywatchman/encoding.py @ 51699:ca7bde5dbafb

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 7f0cb9ee0534
children f4733654f144
comparison
equal deleted inserted replaced
51698:b0a4de6c14f8 51699:ca7bde5dbafb
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"