frabbit 11 tahun lalu
induk
melakukan
122ff8aef8

+ 3 - 3
std/python/_std/sys/io/File.hx

@@ -62,21 +62,21 @@ class File {
 	public static function read( path : String, binary : Bool = true ) : FileInput {
 		var mode = "rb";
 		var f:python.lib.io.RawIOBase = cast python.lib.Builtin.open(path, mode, -1);
-		return new FileInput(f, binary);
+		return new FileInput(f);
 	}
 
 	public static function write( path : String, binary : Bool = true ) : FileOutput {
 		var mode = "wb";
 		var f:python.lib.io.RawIOBase = cast python.lib.Builtin.open(path, mode, -1);
 
-		return new FileOutput(f, binary);
+		return new FileOutput(f);
 	}
 
 	public static function append( path : String, binary : Bool = true ) : FileOutput {
 		var mode = "ab";
 		var f:python.lib.io.RawIOBase = cast python.lib.Builtin.open(path, mode, -1);
 
-		return new FileOutput(f, binary);
+		return new FileOutput(f);
 	}
 
 	public static function copy( srcPath : String, dstPath : String ) : Void

+ 2 - 1
std/python/_std/sys/io/FileInput.hx

@@ -3,8 +3,10 @@ package sys.io;
 
 import python.io.NativeInput;
 import python.lib.io.RawIOBase;
+import python.lib.io.IOBase.SeekSet;
 
 class FileInput extends NativeInput {
+
 	public function new (stream:RawIOBase) {
 		super(stream);
 	}
@@ -12,5 +14,4 @@ class FileInput extends NativeInput {
 	public function eof() {
 		return false; // TODO
 	}
-
 }

+ 0 - 1
std/python/_std/sys/io/FileOutput.hx

@@ -8,5 +8,4 @@ class FileOutput extends python.io.NativeOutput {
 	public function new (stream:RawIOBase) {
 		super(stream);
 	}
-
 }