[issue6409] 2to3 generates malformed diffs

Jean-Paul Calderone report at bugs.python.org
Fri Jul 3 17:53:47 CEST 2009


New submission from Jean-Paul Calderone <exarkun at divmod.com>:

I ran 2to3 over Twisted r27084 like this:

time ~/Projects/python/trunk/python
/home/exarkun/Projects/python/trunk/Tools/scripts/2to3 -j 4 twisted/ >
2to3.patch

Visual inspection revealed some curious defects, and attempting to apply
it failed like this:

$ patch -p0 < 2to3.patch 
patching file twisted/application/app.py
patching file twisted/conch/client/connect.py
patching file twisted/conch/client/default.py
patch: **** malformed patch at line 129: @@ -1,6 +1,6 @@

The resulting file is attached.

----------
components: Library (Lib)
files: 2to3.patch
keywords: patch
messages: 90064
nosy: exarkun
severity: normal
status: open
title: 2to3 generates malformed diffs
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file14441/2to3.patch

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


More information about the Python-bugs-list mailing list