def delete_remote_branch():
 branch = choose_remote_branch(N_(u'Delete Remote Branch'), N_(u'Delete'), icon=icons.discard())
 if (not branch):
  return
 rgx = re.compile(u'^(?P<remote>[^/]+)/(?P<branch>.+)$')
 match = rgx.match(branch)
 if match:
  remote = match.group(u'remote')
  branch = match.group(u'branch')
  cmds.do(cmds.DeleteRemoteBranch, remote, branch)

def delete_remote_branch ( ) : branch = choose_remote_branch ( N_ ( u'Delete Remote Branch' ) , N_ ( u'Delete' ) , icon = icons . discard ( ) ) if ( not branch ) : return rgx = re . compile ( u'^(?P<remote>[^/]+)/(?P<branch>.+)$' ) match = rgx . match ( branch ) if match : remote = match . group ( u'remote' ) branch = match . group ( u'branch' ) cmds . do ( cmds . DeleteRemoteBranch , remote , branch )
launch the delete remote branch dialog .