~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to patches.py

  • Committer: Aaron Bentley
  • Date: 2005-06-17 15:42:46 UTC
  • Revision ID: abentley@panoramicfeedback.com-20050617154246-cbefe010a32b7e2a
Moved mostly-unused sys import

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
#    You should have received a copy of the GNU General Public License
15
15
#    along with this program; if not, write to the Free Software
16
16
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
 
import sys
18
17
class PatchSyntax(Exception):
19
18
    def __init__(self, msg):
20
19
        Exception.__init__(self, msg)
433
432
 
434
433
 
435
434
        def testLineLookup(self):
 
435
            import sys
436
436
            """Make sure we can accurately look up mod line from orig"""
437
437
            patch = parse_patch(open("testdata/diff"))
438
438
            orig = list(open("testdata/orig"))