hgext/fsmonitor/pywatchman/encoding.py
changeset 51690 493034cc3265
parent 49537 f58f955adad4
child 51700 7f0cb9ee0534
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"