[PATCH] patch: use new style class in linereader

Simon Heimberg simohe at besonet.ch
Mon Jun 22 05:05:40 CDT 2009


# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1245665111 -7200
# Node ID 5eb61f059dfb84a6048844abe629102b9b2992bf
# Parent  6c2cfe33f13ab2fc10987b046bc8ac88c094fca3
patch: use new style class in linereader

diff -r 6c2cfe33f13a -r 5eb61f059dfb mercurial/patch.py
--- a/mercurial/patch.py	Son Jun 21 01:13:19 2009 +0200
+++ b/mercurial/patch.py	Mon Jun 22 12:05:11 2009 +0200
@@ -228,7 +228,7 @@
 
     return (dopatch, gitpatches)
 
-class linereader:
+class linereader(object):
     # simple class to allow pushing lines back into the input stream
     def __init__(self, fp, textmode=False):
         self.fp = fp


More information about the Mercurial-devel mailing list