[New-bugs-announce] [issue30620] textwrap: dedent contains logic that can never execute

Jonathan Eunice report at bugs.python.org
Sat Jun 10 00:09:38 EDT 2017


New submission from Jonathan Eunice:

textwrap.dedent contains a bit of code that appears logical at first blush, but in fact can never execute under any input conditions.

Not only are the lines "dead code," they are the only thing (i.e. only non-debugging lines) now standing in the way of textwrap having 100% test coverage.

Here is the proof: https://gist.github.com/jonathaneunice/86f6a721e48c89e272a778530e8f758c

A PR removing the bogus lines is imminent.

----------
components: Library (Lib)
messages: 295606
nosy: jonathaneunice
priority: normal
severity: normal
status: open
title: textwrap: dedent contains logic that can never execute
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30620>
_______________________________________


More information about the New-bugs-announce mailing list