def register_open(id, factory, accept=None):
 id = id.upper()
 ID.append(id)
 OPEN[id] = (factory, accept)

def register_open ( id , factory , accept = None ) : id = id . upper ( ) ID . append ( id ) OPEN [ id ] = ( factory , accept )
register an image file plugin .