# HG changeset patch # User Patrick Mezard # Date 1200082827 -3600 # Node ID e52383c7e7abc35892dee1f3a4e32f776fb78a4f # Parent c32d41affb68e3c1c782c1ba7df93f150301323d util_win32: implement posixfile_nt.writelines() Used by the keyword extension. diff -r c32d41affb68 -r e52383c7e7ab mercurial/util_win32.py --- a/mercurial/util_win32.py Thu Jan 10 12:07:18 2008 +0300 +++ b/mercurial/util_win32.py Fri Jan 11 21:20:27 2008 +0100 @@ -285,6 +285,10 @@ 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)