From: Jonathan Eunice Date: Fri, 16 Jun 2017 02:19:43 +0000 (-0400) Subject: bpo-30620: Remove dead lines from textwrap.dedent (GH-2064) X-Git-Tag: v3.7.0a1~580 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a801839e9a88bdcac5aaab494b532230fcf7caa;p=thirdparty%2FPython%2Fcpython.git bpo-30620: Remove dead lines from textwrap.dedent (GH-2064) --- diff --git a/Lib/textwrap.py b/Lib/textwrap.py index 0c18dc582e17..8103f347452d 100644 --- a/Lib/textwrap.py +++ b/Lib/textwrap.py @@ -450,8 +450,6 @@ def dedent(text): if x != y: margin = margin[:i] break - else: - margin = margin[:len(indent)] # sanity check (testing/debugging only) if 0 and margin: