parameters: (self, info, encoding, errors)
return_statement: return self._create_header(info, USTAR_FORMAT, encoding, errors)
docstring: Return the object as a ustar header block.
docstring_summary: Return the object as a ustar header block.
docstring_tokens: Return the object as a ustar header block .
function: def create_ustar_header(self, info, encoding, errors):
          """Return the object as a ustar header block.
          """
          info["magic"] = POSIX_MAGIC
  
          if len(info["linkname"].encode(encoding, errors)) > LENGTH_LINK:
              raise ValueError("linkname is too long")
  
          if len(info["name"].encode(encoding, errors)) > LENGTH_NAME:
              info["prefix"], info["name"] = self._posix_split_name(info["name"], encoding, errors)
  
          return self._create_header(info, USTAR_FORMAT, encoding, errors)
function_tokens: def create_ustar_header ( self , info , encoding , errors ) : info [ "magic" ] = POSIX_MAGIC if len ( info [ "linkname" ] . encode ( encoding , errors ) ) > LENGTH_LINK : raise ValueError ( "linkname is too long" ) if len ( info [ "name" ] . encode ( encoding , errors ) ) > LENGTH_NAME : info [ "prefix" ] , info [ "name" ] = self . _posix_split_name ( info [ "name" ] , encoding , errors ) return self . _create_header ( info , USTAR_FORMAT , encoding , errors )