mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-01 02:36:14 -05:00
pep8: remove unexpected spaces around "=" in function/method head
This commit is contained in:
parent
152bc32ba7
commit
f5889d96dd
@ -225,7 +225,7 @@ def tails_root():
|
|||||||
# close hole in firewall on shutdown
|
# close hole in firewall on shutdown
|
||||||
import signal
|
import signal
|
||||||
|
|
||||||
def handler(signum = None, frame = None):
|
def handler(signum=None, frame=None):
|
||||||
subprocess.call(['/sbin/iptables', '-D', 'OUTPUT', '-o', 'lo', '-p', 'tcp', '--dport', str(port), '-j', 'ACCEPT'])
|
subprocess.call(['/sbin/iptables', '-D', 'OUTPUT', '-o', 'lo', '-p', 'tcp', '--dport', str(port), '-j', 'ACCEPT'])
|
||||||
sys.exit()
|
sys.exit()
|
||||||
for sig in [signal.SIGTERM, signal.SIGINT, signal.SIGHUP, signal.SIGQUIT]:
|
for sig in [signal.SIGTERM, signal.SIGINT, signal.SIGHUP, signal.SIGQUIT]:
|
||||||
|
Loading…
Reference in New Issue
Block a user