election/openstack_election
Tony Breeds da1faab51b Make the owners code work with python3
When generating electorate rolls under python3 we get the following:
 Traceback (most recent call last):
   File ".tox/venv/bin/generate-rolls", line 10, in <module>
     sys.exit(main())
   File "/home/tony/projects/openstack/openstack/election/openstack_election/cmds/generate_rolls.py", line 84, in main
     owners.main(options)
   File "/home/tony/projects/openstack/openstack/election/openstack_election/owners.py", line 532, in main
     normalized_project = normalize_project(project)
   File "/home/tony/projects/openstack/openstack/election/openstack_election/owners.py", line 60, in normalize_project
     return project.translate(maketrans(' -', '__')).lower()
 TypeError: a bytes-like object is required, not 'str'

Remove the python2 compat code and just use str.maketrans() always.

Change-Id: I12e351886d3e431144eeeb3a0efbd94dd0552946
2018-12-12 14:09:05 +11:00
..
cmds Add a tox environment for flexible candidate checking 2018-12-12 14:09:05 +11:00
tests Factor out the logic to collect the candidate files 2018-12-12 14:09:05 +11:00
__init__.py Make openstack_election look more like a python module 2016-09-12 15:35:40 +10:00
check_candidacy.py Lookup gerrit username and use that for looking for changes 2018-07-31 10:03:48 +10:00
config.py Rewrite the event logic in javascript 2017-01-30 01:48:11 +00:00
exception.py Remove inappropriate pass in MemberNotFoundException 2018-07-26 10:37:12 +10:00
owners.py Make the owners code work with python3 2018-12-12 14:09:05 +11:00
require_py3.py Add a tool to pick some start dates for an election 2018-12-12 14:09:05 +11:00
utils.py Factor out the logic to collect the candidate files 2018-12-12 14:09:05 +11:00