From: Fredrik Tolf Date: Thu, 14 Apr 2011 10:20:47 +0000 (+0200) Subject: python: Added __all__ to ashd.proto and ashd.util. X-Git-Tag: 0.8~14 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=e66efe5f71c2bb6182055dffc9beefd0373ff3ad python: Added __all__ to ashd.proto and ashd.util. --- diff --git a/python/ashd/proto.py b/python/ashd/proto.py index c1ae1b0..4a48304 100644 --- a/python/ashd/proto.py +++ b/python/ashd/proto.py @@ -10,6 +10,8 @@ ashd.util module provides an easier-to-use interface. import os, socket import htlib +__all__ = ["req", "recvreq", "sendreq"] + class protoerr(Exception): pass diff --git a/python/ashd/util.py b/python/ashd/util.py index 2ac7dc0..0ff3878 100644 --- a/python/ashd/util.py +++ b/python/ashd/util.py @@ -7,6 +7,8 @@ handlers, wrapping the low-level ashd.proto module. import os, socket import proto +__all__ = ["stdfork", "pchild", "respond", "serveloop"] + def stdfork(argv, chinit = None): """Fork a persistent handler process using the `argv' argument list, as per the standard ashd(7) calling convention. For an