Bugs item #2485193, was opened at 2009-01-04 10:58 Message generated for change (Comment added) made by siebrand You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2485193...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: other Group: None
Status: Closed Resolution: Accepted
Priority: 5 Private: No Submitted By: Murph (pauljmurph) Assigned to: Nobody/Anonymous (nobody) Summary: replace.py: Patch: Ignore variations in newlines on new/old
Initial Comment: Pywikipedia [http] trunk/pywikipedia (r6219, Jan 03 2009, 14:34:49) Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC 4.0.1 (Apple Inc. build 5465)]
The standard replace.py has a habit of showing a file as having changed, but with zero changes if a \r\n has been changed to \n by one of the patterns. Solution: treat \r\n as \n in the comparison to determine if any changes have been made.
Patch attached.
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-01-27 09:45
Message: Applied in r6296. Thanks.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2485193...