parameters: (self)
return_statement: return info
docstring: Return the TarInfo's attributes as a dictionary.
docstring_summary: Return the TarInfo's attributes as a dictionary.
docstring_tokens: Return the TarInfo s attributes as a dictionary .
function: def get_info(self):
          """Return the TarInfo's attributes as a dictionary.
          """
          info = {
              "name":     self.name,
              "mode":     self.mode & 0o7777,
              "uid":      self.uid,
              "gid":      self.gid,
              "size":     self.size,
              "mtime":    self.mtime,
              "chksum":   self.chksum,
              "type":     self.type,
              "linkname": self.linkname,
              "uname":    self.uname,
              "gname":    self.gname,
              "devmajor": self.devmajor,
              "devminor": self.devminor
          }
  
          if info["type"] == DIRTYPE and not info["name"].endswith("/"):
              info["name"] += "/"
  
          return info
function_tokens: def get_info ( self ) : info = { "name" : self . name , "mode" : self . mode & 0o7777 , "uid" : self . uid , "gid" : self . gid , "size" : self . size , "mtime" : self . mtime , "chksum" : self . chksum , "type" : self . type , "linkname" : self . linkname , "uname" : self . uname , "gname" : self . gname , "devmajor" : self . devmajor , "devminor" : self . devminor } if info [ "type" ] == DIRTYPE and not info [ "name" ] . endswith ( "/" ) : info [ "name" ] += "/" return info