(
            self, number, param, filetype, mode, access, lock,
            reclen, seg, offset, length, field
        )
return new_file
Open a file on the device.
Open a file on the device.
Open a file on the device .
def open(
            self, number, param, filetype, mode, access, lock,
            reclen, seg, offset, length, field
        ):
        """Open a file on the device."""
        new_file = Device.open(
            self, number, param, filetype, mode, access, lock,
            reclen, seg, offset, length, field
        )
        # SAVE "SCRN:" includes a magic byte
        new_file.write(TYPE_TO_MAGIC.get(filetype, b''))
        return new_file
def open ( self , number , param , filetype , mode , access , lock , reclen , seg , offset , length , field ) : new_file = Device . open ( self , number , param , filetype , mode , access , lock , reclen , seg , offset , length , field ) # SAVE "SCRN:" includes a magic byte new_file . write ( TYPE_TO_MAGIC . get ( filetype , b'' ) ) return new_file