don't use string.strip anymore

This commit is contained in:
Daniel Neuhäuser 2010-06-06 23:13:06 +02:00
parent 2683b839d5
commit 87bbe8ddd5

View File

@ -9,8 +9,6 @@
:license: BSD, see LICENSE for details. :license: BSD, see LICENSE for details.
""" """
import string
from util import * from util import *
from sphinx.ext.autosummary import mangle_signature from sphinx.ext.autosummary import mangle_signature
@ -27,7 +25,7 @@ def test_mangle_signature():
(a, b, c='foobar()', d=123) :: (a, b[, c, d]) (a, b, c='foobar()', d=123) :: (a, b[, c, d])
""" """
TEST = [map(string.strip, x.split("::")) for x in TEST.split("\n") TEST = [map(lambda x: x.strip(), x.split("::")) for x in TEST.split("\n")
if '::' in x] if '::' in x]
for inp, outp in TEST: for inp, outp in TEST:
res = mangle_signature(inp).strip().replace(u"\u00a0", " ") res = mangle_signature(inp).strip().replace(u"\u00a0", " ")