Merge "Py3K support for governance update script"

This commit is contained in:
Zuul 2019-11-14 02:58:28 +00:00 committed by Gerrit Code Review
commit baac448021

View File

@ -65,7 +65,6 @@ def update_projects(projects_fname, candidates_list, projects):
if skip > 0:
skip -= 1
continue
line = line.decode('utf-8')
# Projects are detectable as they have no whitespace in column 0
match = re.match('^([^ \t][^:]+?):$', line)
if match:
@ -90,7 +89,7 @@ def update_projects(projects_fname, candidates_list, projects):
else:
print('Skipping %s election in progress %d candidates' %
(p, nr_candidates))
fh.write(line.encode('utf-8'))
fh.write(line)
print('Processed %d projects' % (project_count))