#NEWLINE# def register_unpack_format( name , extensions , function , extra_args = None , description = '' ) : #NEWLINE# #INDENT# "Registers an unpack format.\n\n    `name` is the name of the format. `extensions` is a list of extensions\n    corresponding to the format.\n\n    `function` is the callable that will be\n    used to unpack archives. The callable will receive archives to unpack.\n    If it's unable to handle an archive, it needs to raise a ReadError\n    exception.\n\n    If provided, `extra_args` is a sequence of\n    (name, value) tuples that will be passed as arguments to the callable.\n    description can be provided to describe the format, and will be returned\n    by the get_unpack_formats() function.\n    " #NEWLINE# if ( extensions is None ) : #NEWLINE# #INDENT# extra_args = [ ] #NEWLINE# #UNINDENT# _check_unpack_options ( extensions , function , extra_args ) #NEWLINE# _UNPACK_FORMATS [ name ] = ( extensions , function , extra_args , description )