# HG changeset patch # User Patrick Mezard # Date 2008-01-11 20:20:27 # Node ID e52383c7e7abc35892dee1f3a4e32f776fb78a4f # Parent c32d41affb68e3c1c782c1ba7df93f150301323d util_win32: implement posixfile_nt.writelines() Used by the keyword extension. diff --git a/mercurial/util_win32.py b/mercurial/util_win32.py --- a/mercurial/util_win32.py +++ b/mercurial/util_win32.py @@ -285,6 +285,10 @@ class posixfile_nt(object): except pywintypes.error, err: raise WinIOError(err) + def writelines(self, sequence): + for s in sequence: + self.write(s) + def seek(self, pos, whence=0): try: win32file.SetFilePointer(self.handle, int(pos), whence)