Mercurial > hg-stable
changeset 5847:e52383c7e7ab
util_win32: implement posixfile_nt.writelines()
Used by the keyword extension.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Fri, 11 Jan 2008 21:20:27 +0100 |
parents | c32d41affb68 |
children | e90a7a3c28a4 |
files | mercurial/util_win32.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)