diff options
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"] |