From 28b5d25a557b31d2ba6d81e924b3273477f20ec3 Mon Sep 17 00:00:00 2001 From: Jerome Carretero Date: Thu, 14 Jun 2012 22:36:16 -0400 Subject: [PATCH] readf_win32: fix small typo --- waflib/Utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waflib/Utils.py b/waflib/Utils.py index 913671db..7c11d84f 100644 --- a/waflib/Utils.py +++ b/waflib/Utils.py @@ -219,7 +219,7 @@ if hasattr(os, 'O_NOINHERIT'): if sys.hexversion > 0x3000000 and not 'b' in m: m += 'b' - f = open(fname, m) + f = open(f, m) try: txt = f.read() finally: @@ -231,7 +231,7 @@ if hasattr(os, 'O_NOINHERIT'): txt = f.read() finally: f.close() - return txt + return txt def writef_win32(f, data, m='w', encoding='ISO8859-1'): if sys.hexversion > 0x3000000 and not 'b' in m: