Skip to content

Commit

Permalink
Another pragma: nocover
Browse files Browse the repository at this point in the history
I admire the paranoia of anyone who is prepared for non-string keys in
the 'signal' module's __dict__.
  • Loading branch information
mgedmin committed Apr 15, 2015
1 parent ef64bdd commit 91b4cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zdaemon/zdrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def _init_signames():
d = {}
for k, v in signal.__dict__.items():
k_startswith = getattr(k, "startswith", None)
if k_startswith is None:
if k_startswith is None: # pragma: nocover
continue
if k_startswith("SIG") and not k_startswith("SIG_"):
d[v] = k
Expand Down

0 comments on commit 91b4cab

Please sign in to comment.