techtonik / python-patch

Library to parse and apply unified diffs
https://pypi.python.org/pypi/patch
106 stars 63 forks source link

fromstring() fails due to mismatch between import and usage of StringIO. #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In svn HEAD (r90), on line 22 of patch.py, StringIO is imported using "from 
StringIO import StringIO".  But on line 70 (in fromstring()), the code tries to 
instantiate "StringIO.StringIO", which fails with an AttributeError.

This can be fixed by either changing the import to just "import StringIO" or by 
removing the initial "StringIO." from the place where StringIO is instantiated.

Original issue reported on code.google.com by john.stumpo on 29 Jun 2010 at 12:09

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r92.

Original comment by techtonik@gmail.com on 2 Jul 2010 at 6:05

GoogleCodeExporter commented 9 years ago
Overlooked. Thanks!

Original comment by techtonik@gmail.com on 2 Jul 2010 at 6:06