##// END OF EJS Templates
pycompat: make pycompat demandimport friendly...
pycompat: make pycompat demandimport friendly pycompat.py includes hack to import modules whose names are changed in Python 3. We use try-except to load module according to the version of python. But this method forces us to import the modules to raise an ImportError and hence making it demandimport unfriendly. This patch changes the try-except blocks to a single if-else block. To avoid test-check-pyflakes.t complain about unused imports, pycompat.py is excluded from the test.
Pulkit Goyal -
r29584:06587edd default
Show More
Name Size Modified Last Commit Author
/ hgext / fsmonitor
pywatchman
__init__.py Loading ...
state.py Loading ...
watchmanclient.py Loading ...