Skip to content

Commit e548fb9

Browse files
author
Alexander Smishlajev
committed
expand tabs
1 parent 9a75e80 commit e548fb9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

roundup/scripts/roundup_server.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Command-line script that runs a server over roundup.cgi.client.
1919
20-
$Id: roundup_server.py,v 1.86 2006-12-18 03:53:39 richard Exp $
20+
$Id: roundup_server.py,v 1.87 2006-12-18 05:56:49 a1s Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -378,8 +378,8 @@ class ServerConfig(configuration.Config):
378378
"In order to use this option, "
379379
"the server must be run initially as root.\n"
380380
"Availability: Unix."),
381-
(configuration.BooleanOption, "nodaemon", "no",
382-
"don't fork (this overrides the pidfile mechanism)'"),
381+
(configuration.BooleanOption, "nodaemon", "no",
382+
"don't fork (this overrides the pidfile mechanism)'"),
383383
(configuration.BooleanOption, "log_hostnames", "no",
384384
"Log client machine names instead of IP addresses "
385385
"(much slower)"),
@@ -645,9 +645,9 @@ def writepidfile(pidfile):
645645
''' Write a pidfile (only). Do not daemonize. '''
646646
pid = os.getpid()
647647
if pid:
648-
pidfile = open(pidfile, 'w')
649-
pidfile.write(str(pid))
650-
pidfile.close()
648+
pidfile = open(pidfile, 'w')
649+
pidfile.write(str(pid))
650+
pidfile.close()
651651

652652
def daemonize(pidfile):
653653
''' Turn this process into a daemon.
@@ -774,10 +774,10 @@ def run(port=undefined, success_message=None):
774774
" on this Operating System")
775775
sys.exit(0)
776776
else:
777-
if config['NODAEMON']:
778-
writepidfile(config["PIDFILE"])
779-
else:
780-
daemonize(config["PIDFILE"])
777+
if config['NODAEMON']:
778+
writepidfile(config["PIDFILE"])
779+
else:
780+
daemonize(config["PIDFILE"])
781781

782782
# create the server
783783
httpd = config.get_server()

0 commit comments

Comments
 (0)