parameters: (cls, name, mode="r", fileobj=None, compresslevel=9, **kwargs)
return_statement: return t
docstring: Open gzip compressed tar archive name for reading or writing.
             Appending is not allowed.
docstring_summary: Open gzip compressed tar archive name for reading or writing.
             Appending is not allowed.
docstring_tokens: Open gzip compressed tar archive name for reading or writing . Appending is not allowed .
function: def gzopen(cls, name, mode="r", fileobj=None, compresslevel=9, **kwargs):
          """Open gzip compressed tar archive name for reading or writing.
             Appending is not allowed.
          """
          if mode not in ("r", "w", "x"):
              raise ValueError("mode must be 'r', 'w' or 'x'")
  
          try:
              from gzip import GzipFile
          except ImportError:
              raise CompressionError("gzip module is not available")
  
          try:
              fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
          except OSError:
              if fileobj is not None and mode == 'r':
                  raise ReadError("not a gzip file")
              raise
  
          try:
              t = cls.taropen(name, mode, fileobj, **kwargs)
          except OSError:
              fileobj.close()
              if mode == 'r':
                  raise ReadError("not a gzip file")
              raise
          except:
              fileobj.close()
              raise
          t._extfileobj = False
          return t
function_tokens: def gzopen ( cls , name , mode = "r" , fileobj = None , compresslevel = 9 , * * kwargs ) : if mode not in ( "r" , "w" , "x" ) : raise ValueError ( "mode must be 'r', 'w' or 'x'" ) try : from gzip import GzipFile except ImportError : raise CompressionError ( "gzip module is not available" ) try : fileobj = GzipFile ( name , mode + "b" , compresslevel , fileobj ) except OSError : if fileobj is not None and mode == 'r' : raise ReadError ( "not a gzip file" ) raise try : t = cls . taropen ( name , mode , fileobj , * * kwargs ) except OSError : fileobj . close ( ) if mode == 'r' : raise ReadError ( "not a gzip file" ) raise except : fileobj . close ( ) raise t . _extfileobj = False return t