summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'>":