diff roundup/scripts/roundup_server.py @ 2675:52e679309217

unset svc_args is empty list, not None
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Tue, 21 Sep 2004 08:16:50 +0000
parents 18a23afb1f89
children ea18be87d68d
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py	Tue Sep 21 08:01:15 2004 +0000
+++ b/roundup/scripts/roundup_server.py	Tue Sep 21 08:16:50 2004 +0000
@@ -17,7 +17,7 @@
 
 """Command-line script that runs a server over roundup.cgi.client.
 
-$Id: roundup_server.py,v 1.60 2004-09-21 08:01:15 a1s Exp $
+$Id: roundup_server.py,v 1.61 2004-09-21 08:16:50 a1s Exp $
 """
 __docformat__ = 'restructuredtext'
 
@@ -499,7 +499,7 @@
             elif opt == '-c': svc_args = [opt] + args; args = None
             elif opt == '-C': config = arg
 
-        if svc_args is not None and len(optlist) > 1:
+        if svc_args and len(optlist) > 1:
             raise ValueError, _("windows service option must be the only one")
 
         if pidfile and not logfile:

Roundup Issue Tracker: http://roundup-tracker.org/