summaryrefslogtreecommitdiffstats
path: root/Lib/code.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2003-05-08 01:58:05 (GMT)
committerGreg Ward <gward@python.net>2003-05-08 01:58:05 (GMT)
commit478cd48dee2e40fe009d07c73360c9abbed2ffe4 (patch)
tree9e4b5da2edf65b5921afdb4a91e7eb079430a702 /Lib/code.py
parent4656ed44ca0cf90225ea1da04fa4154c77f02b0e (diff)
downloadcpython-478cd48dee2e40fe009d07c73360c9abbed2ffe4.zip
cpython-478cd48dee2e40fe009d07c73360c9abbed2ffe4.tar.gz
cpython-478cd48dee2e40fe009d07c73360c9abbed2ffe4.tar.bz2
SF patch #598163 (Ville Vainio, vvainio@users.sourceforge.net):
add dedent() function, to remove indentation from multiline strings (eg. triple-quoted strings). Differs from inspect.getdoc() by not special-casing the first line (often a sensible approach for non-docstring multiline strings). This should make this function more general (symmetric 'indent' also possible), and more fitting for the textwrap module.
Diffstat (limited to 'Lib/code.py')
0 files changed, 0 insertions, 0 deletions