1__doc__ = u""" 2 >>> def test(a, b): 3 ... return (a, b, add(a, b)) 4 5 >>> test(1, 2) 6 (1, 2, 3) 7 >>> [ repr(f) for f in test(17.25, 88.5) ] 8 ['17.25', '88.5', '105.75'] 9 >>> test(u'eggs', u'spam') 10 (u'eggs', u'spam', u'eggsspam') 11""" 12 13import sys 14if sys.version_info[0] >= 3: 15 __doc__ = __doc__.replace(u"u'", u"'") 16 17def add(x, y): 18 return x + y 19