]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-30620: Remove dead lines from textwrap.dedent (GH-2064)
authorJonathan Eunice <jonathan.eunice@gmail.com>
Fri, 16 Jun 2017 02:19:43 +0000 (22:19 -0400)
committerMariatta <Mariatta@users.noreply.github.com>
Fri, 16 Jun 2017 02:19:43 +0000 (19:19 -0700)
Lib/textwrap.py

index 0c18dc582e17aec7344d38cf3693c95c94564ca1..8103f347452d35b273f56ee9c280080becbc6205 100644 (file)
@@ -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: