diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2008-05-16 15:58:12 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2008-05-16 15:58:12 +0000 |
| commit | 7f60fd46d5aad44dad79cdc3cf67c9804fc94e3e (patch) | |
| tree | 7e2ab527f6cd802baf57c63c0a15ea784425874f /python/qpid/spec08.py | |
| parent | e6bc6ff91d47d1330d2fbbe88005beaf935382a3 (diff) | |
| download | qpid-python-7f60fd46d5aad44dad79cdc3cf67c9804fc94e3e.tar.gz | |
QPID-947: initialize docstrings for protocol methods from the spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@657112 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/spec08.py')
| -rw-r--r-- | python/qpid/spec08.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/python/qpid/spec08.py b/python/qpid/spec08.py index 623b2e9e9f..a0047e7107 100644 --- a/python/qpid/spec08.py +++ b/python/qpid/spec08.py @@ -29,7 +29,8 @@ class so that the generated code can be reused in a variety of situations. """ -import re, textwrap, new, mllib, qpid +import re, new, mllib, qpid +from util import fill class SpecContainer: @@ -449,15 +450,6 @@ def pythonize(name): pass return name -def fill(text, indent, heading = None): - sub = indent * " " - if heading: - init = (indent - 2) * " " + heading + " -- " - else: - init = sub - w = textwrap.TextWrapper(initial_indent = init, subsequent_indent = sub) - return w.fill(" ".join(text.split())) - class Rule(Metadata): PRINT = ["text", "implement", "tests"] |
