zerver/lib/debug.py: Remove from mypy's exclude_py3.

traceback.print_stack doesn't have a stub yet.  So ignore the
statement which uses it.
This commit is contained in:
Eklavya Sharma 2016-07-04 12:52:48 +05:30 committed by Tim Abbott
parent 6bb266d262
commit 06a7a6caee
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@ exclude_py2 = []
exclude_py3 = """ exclude_py3 = """
zerver/lib/actions.py zerver/lib/actions.py
zerver/lib/ccache.py zerver/lib/ccache.py
zerver/lib/debug.py
zerver/lib/email_mirror.py zerver/lib/email_mirror.py
zerver/lib/notifications.py zerver/lib/notifications.py
zerver/lib/tornado_ioloop_logging.py zerver/lib/tornado_ioloop_logging.py

View File

@ -30,5 +30,5 @@ def interactive_debug(sig, frame):
# SIGUSR2 => Print stack + open interactive debugging shell # SIGUSR2 => Print stack + open interactive debugging shell
def interactive_debug_listen(): def interactive_debug_listen():
# type: () -> None # type: () -> None
signal.signal(signal.SIGUSR1, lambda sig, stack: traceback.print_stack(stack)) signal.signal(signal.SIGUSR1, lambda sig, stack: traceback.print_stack(stack)) # type: ignore # https://github.com/python/typeshed/issues/294
signal.signal(signal.SIGUSR2, interactive_debug) signal.signal(signal.SIGUSR2, interactive_debug)