Commit d6fd39fa authored by Barry Warsaw's avatar Barry Warsaw

main(): Sigh, Zope 2.5.1 has a different version of ThreadedAsync

which doesn't put .loop() in the package namespace.  Use the full
dotted path to the function.

Also, fix a docstring typo.
parent 28bd874c
...@@ -19,7 +19,7 @@ import sys, os, getopt ...@@ -19,7 +19,7 @@ import sys, os, getopt
import types import types
import errno import errno
import socket import socket
import ThreadedAsync import ThreadedAsync.LoopCallback
def directory(p, n=1): def directory(p, n=1):
d = p d = p
...@@ -134,7 +134,7 @@ def main(argv): ...@@ -134,7 +134,7 @@ def main(argv):
-p port -- port to listen on -p port -- port to listen on
-h adddress -- host address to listen on -h address -- host address to listen on
-s -- Don't use zdeamon -s -- Don't use zdeamon
...@@ -292,7 +292,7 @@ def main(argv): ...@@ -292,7 +292,7 @@ def main(argv):
try: try:
try: try:
ThreadedAsync.loop() ThreadedAsync.LoopCallback.loop()
finally: finally:
if os.path.isfile(env.zeo_pid): if os.path.isfile(env.zeo_pid):
os.unlink(env.zeo_pid) os.unlink(env.zeo_pid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment