Skip to content
Permalink
Browse files

make this microscopically faster

  • Loading branch information
alex committed Jul 1, 2013
1 parent 49d287b commit c6f7e290fe5c36a5a7ca6b2488c88b7c993277f6
Showing with 2 additions and 2 deletions.
  1. +2 −2 topaz/modules/signal.py
@@ -5,15 +5,15 @@
from topaz.module import ModuleDef


RUBY_SIGNALS = [
RUBY_SIGNALS = set([
"SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGTRAP", "SIGIOT", "SIGABRT",
"SIGEMT", "SIGFPE", "SIGKILL", "SIGBUS", "SIGSEGV", "SIGSYS", "SIGPIPE",
"SIGALRM", "SIGTERM", "SIGURG", "SIGSTOP", "SIGTSTP", "SIGCONT", "SIGCHLD",
"SIGCLD", "SIGCHLD", "SIGTTIN", "SIGTTOU", "SIGIO", "SIGXCPU", "SIGXFSZ",
"SIGVTALRM", "SIGPROF", "SIGWINCH", "SIGUSR1", "SIGUSR2", "SIGLOST",
"SIGMSG", "SIGPWR", "SIGPOLL", "SIGDANGER", "SIGMIGRATE", "SIGPRE",
"SIGGRANT", "SIGRETRACT", "SIGSOUND", "SIGINFO",
]
])

SIGNALS = dict([
(k[3:], getattr(rsignal, k))

0 comments on commit c6f7e29

Please sign in to comment.