def register_vcs_handler(vcs, method):
 def decorate(f):
  'Store f in HANDLERS[vcs][method].'
  if (vcs not in HANDLERS):
   HANDLERS[vcs] = {}
  HANDLERS[vcs][method] = f
  return f
 return decorate

def register_vcs_handler ( vcs , method ) : def decorate ( f ) : if ( vcs not in HANDLERS ) : HANDLERS [ vcs ] = { } HANDLERS [ vcs ] [ method ] = f return f return decorate
decorator to mark a method as the handler for a particular vcs .