From 7f60fd46d5aad44dad79cdc3cf67c9804fc94e3e Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Fri, 16 May 2008 15:58:12 +0000 Subject: 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 --- python/qpid/spec08.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'python/qpid/spec08.py') 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"] -- cgit v1.2.1