diff -r e52383c7e7ab -r e90a7a3c28a4 mercurial/util_win32.py --- a/mercurial/util_win32.py Fri Jan 11 21:20:27 2008 +0100 +++ b/mercurial/util_win32.py Fri Jan 11 16:51:54 2008 -0800 @@ -227,6 +227,9 @@ # but does not work at all. wrap win32 file api instead. def __init__(self, name, mode='rb'): + self.closed = False + self.name = name + self.mode = mode access = 0 if 'r' in mode or '+' in mode: access |= win32file.GENERIC_READ @@ -250,9 +253,6 @@ 0) except pywintypes.error, err: raise WinIOError(err, name) - self.closed = False - self.name = name - self.mode = mode def __iter__(self): for line in self.read().splitlines(True):