mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Merge alpha100 branch back to main trunk
This commit is contained in:
parent
2979b01ff8
commit
b6775db241
176 changed files with 5302 additions and 3668 deletions
|
@ -2,19 +2,19 @@
|
|||
# File windows, a subclass of textwin (which is a subclass of gwin)
|
||||
|
||||
import textwin
|
||||
import builtin
|
||||
import __builtin__
|
||||
|
||||
|
||||
# FILE WINDOW
|
||||
|
||||
def open_readonly(fn): # Open a file window
|
||||
fp = builtin.open(fn, 'r')
|
||||
fp = __builtin__.open(fn, 'r')
|
||||
w = textwin.open_readonly(fn, fp.read())
|
||||
w.fn = fn
|
||||
return w
|
||||
|
||||
def open(fn): # Open a file window
|
||||
fp = builtin.open(fn, 'r')
|
||||
fp = __builtin__.open(fn, 'r')
|
||||
w = textwin.open(fn, fp.read())
|
||||
w.fn = fn
|
||||
return w
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue