hgext/__init__.py
author Yuya Nishihara <yuya@tcha.org>
Mon, 27 Jun 2016 20:44:14 +0900
changeset 29441 9e8d258708bb
parent 28450 155e3308289c
child 43076 2372284d9457
permissions -rw-r--r--
revset: check invalid function syntax "func-name"() explicitly Before the error was caught at func() as an unknown identifier, and the optimizer failed to detect the syntax error. This patch introduces getsymbol() helper to ensure that a string is not allowed as a function name.

from __future__ import absolute_import
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)