diff options
author | Guido van Rossum <guido@python.org> | 1991-02-19 13:02:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-02-19 13:02:13 (GMT) |
commit | 261cbb2165d4ad07d7f026c2ca02a6b819bfd518 (patch) | |
tree | 36e87ce78160fe80df45a1f9a0aede78ebc64b60 /Lib/stdwin/filewin.py | |
parent | 56098fa2d4e68ef80feff84153ae0519adf255ac (diff) | |
download | cpython-261cbb2165d4ad07d7f026c2ca02a6b819bfd518.zip cpython-261cbb2165d4ad07d7f026c2ca02a6b819bfd518.tar.gz cpython-261cbb2165d4ad07d7f026c2ca02a6b819bfd518.tar.bz2 |
Use readfile from util.py.
Diffstat (limited to 'Lib/stdwin/filewin.py')
-rwxr-xr-x | Lib/stdwin/filewin.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Lib/stdwin/filewin.py b/Lib/stdwin/filewin.py index 1beb0b6..6a224e7 100755 --- a/Lib/stdwin/filewin.py +++ b/Lib/stdwin/filewin.py @@ -1,21 +1,8 @@ # Module 'filewin' # File windows, a subclass of textwin (which is a subclass of gwin) -import stdwin import textwin -import path - -builtin_open = open - -def readfile(fn): # Return a string containing the file's contents - fp = builtin_open(fn, 'r') - a = '' - n = 8096 - while 1: - b = fp.read(n) - if not b: break - a = a + b - return a +from util import readfile # FILE WINDOW |