From 13c503e93b0ece98a6b1e100e743cc35b5890cf8 Mon Sep 17 00:00:00 2001
From: Guido van Rossum <guido@python.org>
Date: Thu, 16 Mar 1995 15:58:12 +0000
Subject: default mode="r" and add optional bufsize

---
 Lib/posixfile.py | 4 ++--
 1 file 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'>":
-- 
cgit v0.12

