[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] jobs/chroot-installation.yaml.py: convert python2 to python3

Holger Levsen gitlab at salsa.debian.org
Sat Mar 6 09:02:33 GMT 2021



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
291097ee by Paul Gevers at 2021-03-06T10:00:49+01:00
jobs/chroot-installation.yaml.py: convert python2 to python3

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- job-cfg/chroot-installation.yaml.py


Changes:

=====================================
job-cfg/chroot-installation.yaml.py
=====================================
@@ -1,9 +1,8 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 # -*- coding: utf-8 -*-
 
 import sys
 import yaml
-import string
 
 
 base_distros = [
@@ -321,8 +320,8 @@ for jobindex, jobspec in enumerate(jobspecs):
                       'action': 'bootstrap',
                       'dist': list(dists) if jobspec['j_ext'] == '' else
                                 [{dist: {'dist2': distro_upgrades[dist]}} for dist in dists],
-                      'my_trigger': string.join(['chroot-installation_{dist}_install_'+t+jobspec['j_ext']
-                                                for t in list(trigs)], ', '),
+                      'my_trigger': ', '.join('chroot-installation_{dist}_install_'+t+jobspec['j_ext']
+                                              for t in list(trigs)),
                       'my_description': 'Debootstrap {dist}'+jobspec['d_ext']+'.',
                       'my_prio': 131,
                       'my_time': '',



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/291097eeb2f4b032046f79f3132719ddd25604ae

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/291097eeb2f4b032046f79f3132719ddd25604ae
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20210306/16a0baab/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list