def tag_delete(repo, name):
 with open_repo_closing(repo) as r:
  if isinstance(name, bytes):
   names = [name]
  elif isinstance(name, list):
   names = name
  else:
   raise TypeError(('Unexpected tag name type %r' % name))
  for name in names:
   del r.refs[('refs/tags/' + name)]

def tag_delete ( repo , name ) : with open_repo_closing ( repo ) as r : if isinstance ( name , bytes ) : names = [ name ] elif isinstance ( name , list ) : names = name else : raise TypeError ( ( 'Unexpected tag name type %r' % name ) ) for name in names : del r . refs [ ( 'refs/tags/' + name ) ]
remove a tag .