[Zodb-checkins] CVS: ZODB3/zdaemon - zdaemon.py:1.20
Guido van Rossum
guido@python.org
Wed, 20 Nov 2002 08:43:20 -0500
Update of /cvs-repository/ZODB3/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv6799
Modified Files:
zdaemon.py
Log Message:
Move the posix assert inside main(), so importing this module on
Windows won't hurt. (It's still useless on Windows. :-)
=== ZODB3/zdaemon/zdaemon.py 1.19 => 1.20 ===
--- ZODB3/zdaemon/zdaemon.py:1.19 Tue Nov 19 13:44:00 2002
+++ ZODB3/zdaemon/zdaemon.py Wed Nov 20 08:43:20 2002
@@ -68,7 +68,6 @@
"""
import os
-assert os.name == "posix", "This code makes many Unix-specific assumptions"
import sys
import time
import errno
@@ -796,6 +795,7 @@
# Main program
def main(args=None):
+ assert os.name == "posix", "This code makes many Unix-specific assumptions"
d = Daemonizer()
d.main(args)