##// END OF EJS Templates
fsmonitor: handle unicode keys in tuples...
fsmonitor: handle unicode keys in tuples In Python 3, keys in the bset tuple are typically str, not bytes. PyBytes_AsString() would return NULL. But we weren't checking the return value and this would lead to a segfault. This commit makes the code type and Python version aware. The Python version specific code is to allow us to utilize a modern API for converting str -> char* without having to allocate an extra PyObject. FWIW I wanted to assume that keys were always str. However, there appear to be some bytes keys in some cases. I haven't debugged this further. Differential Revision: https://phab.mercurial-scm.org/D7210

File last commit:

r43346:2372284d default
r43712:d359dfc1 stable
Show More
__init__.py
4 lines | 106 B | text/x-python | PythonLexer
Pierre-Yves David
hgext: officially turn 'hgext' into a namespace package...
r28450 from __future__ import absolute_import
import pkgutil
Augie Fackler
formatting: blacken the codebase...
r43346
Pierre-Yves David
hgext: officially turn 'hgext' into a namespace package...
r28450 __path__ = pkgutil.extend_path(__path__, __name__)