From 2de5874c6c7f00fcfcf4c6a5f84333a4950cbf19 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Mon, 12 Sep 2016 00:16:34 +0000 Subject: [PATCH] Remove unused tool Change-Id: I02d84ed52092c972ee4bfcc2fb251ab02529f554 --- tools/render-wiki-list.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100755 tools/render-wiki-list.py diff --git a/tools/render-wiki-list.py b/tools/render-wiki-list.py deleted file mode 100755 index 3150f502..00000000 --- a/tools/render-wiki-list.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import sys -sys.path.append("doc/source/_exts") -from candidates import build_candidates_list # noqa: E402 - -GIT_BASE = 'http://git.openstack.org/cgit/openstack/election/plain/' - - -def main(argv): - if len(argv) != 2 or argv[1] not in ("PTL", "TC"): - print "usage: %s PTL|TC" % argv[0] - return - candidates_list = build_candidates_list("newton") - - if argv[1] == "PTL": - if 'TC' in candidates_list['projects']: - candidates_list['projects'].remove('TC') - else: - candidates_list['projects'] = ['TC'] - - for project in candidates_list['projects']: - print "* %s" % project.replace('_', ' ') - for candidate in candidates_list['candidates'][project]: - candidate_name = candidate.split('/')[-1][:-4].replace('_', ' ') - candidate_name = candidate_name.title() - print "** [%s/%s %s]" % (GIT_BASE, - candidate.replace(' ', '%20'), - candidate_name) - -if __name__ == "__main__": - main(sys.argv)