(self, mode='r', *args, pwd=None, **kwargs)
return io.TextIOWrapper(stream, *args, **kwargs)
Open this entry as text or binary following the semantics
        of ``pathlib.Path.open()`` by passing arguments through
        to io.TextIOWrapper().
Open this entry as text or binary following the semantics
        of ``pathlib.Path.open()`` by passing arguments through
        to io.TextIOWrapper().
Open this entry as text or binary following the semantics of pathlib . Path . open () by passing arguments through to io . TextIOWrapper () .
def open(self, mode='r', *args, pwd=None, **kwargs):
        """
        Open this entry as text or binary following the semantics
        of ``pathlib.Path.open()`` by passing arguments through
        to io.TextIOWrapper().
        """
        if self.is_dir():
            raise IsADirectoryError(self)
        zip_mode = mode[0]
        if not self.exists() and zip_mode == 'r':
            raise FileNotFoundError(self)
        stream = self.root.open(self.at, zip_mode, pwd=pwd)
        if 'b' in mode:
            if args or kwargs:
                raise ValueError("encoding args invalid for binary operation")
            return stream
        else:
            kwargs["encoding"] = io.text_encoding(kwargs.get("encoding"))
        return io.TextIOWrapper(stream, *args, **kwargs)
def open ( self , mode = 'r' , * args , pwd = None , * * kwargs ) : if self . is_dir ( ) : raise IsADirectoryError ( self ) zip_mode = mode [ 0 ] if not self . exists ( ) and zip_mode == 'r' : raise FileNotFoundError ( self ) stream = self . root . open ( self . at , zip_mode , pwd = pwd ) if 'b' in mode : if args or kwargs : raise ValueError ( "encoding args invalid for binary operation" ) return stream else : kwargs [ "encoding" ] = io . text_encoding ( kwargs . get ( "encoding" ) ) return io . TextIOWrapper ( stream , * args , * * kwargs )