summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-16 15:58:12 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-16 15:58:12 (GMT)
commit13c503e93b0ece98a6b1e100e743cc35b5890cf8 (patch)
tree7a615dbc1ffdcace812ca3032018dbcc722e2719 /Lib
parent27e177d005f169f71771ad8f9ddea7e40b296894 (diff)
downloadcpython-13c503e93b0ece98a6b1e100e743cc35b5890cf8.zip
cpython-13c503e93b0ece98a6b1e100e743cc35b5890cf8.tar.gz
cpython-13c503e93b0ece98a6b1e100e743cc35b5890cf8.tar.bz2
default mode="r" and add optional bufsize
Diffstat (limited to 'Lib')
-rw-r--r--Lib/posixfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py
index fbb24ff..0140e1d 100644
--- a/Lib/posixfile.py
+++ b/Lib/posixfile.py
@@ -76,9 +76,9 @@ class _posixfile_:
#
# Initialization routines
#
- def open(self, name, mode):
+ def open(self, name, mode='r', bufsize=-1):
import __builtin__
- return self.fileopen(__builtin__.open(name, mode))
+ return self.fileopen(__builtin__.open(name, mode, bufsize))
def fileopen(self, file):
if `type(file)` != "<type 'file'>":