diff options
author | Michael Brockus <55331536+michaelbadcrumble@users.noreply.github.com> | 2019-12-06 04:43:21 -0800 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-12-06 14:43:21 +0200 |
commit | c0a9bca62761eb15de3c562922e3c02c5d2ff8e3 (patch) | |
tree | ca9f9eb485b6cca818792ee2b766f783c4748513 /ghwt.py | |
parent | 4487c66507db3eb6f0543b94093d890fc485926a (diff) | |
download | meson-c0a9bca62761eb15de3c562922e3c02c5d2ff8e3.zip meson-c0a9bca62761eb15de3c562922e3c02c5d2ff8e3.tar.gz meson-c0a9bca62761eb15de3c562922e3c02c5d2ff8e3.tar.bz2 |
Update Python2 syntax to Python3 syntax in ghwt.py
Diffstat (limited to 'ghwt.py')
-rwxr-xr-x | ghwt.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,7 +40,7 @@ def list_projects(): return 0 def unpack(sproj, branch, outdir): - subprocess.check_call(['git', 'clone', '-b', branch, 'https://github.com/mesonbuild/%s.git' % sproj, outdir]) + subprocess.check_call(['git', 'clone', '-b', branch, 'https://github.com/mesonbuild/{}.git'.format(sproj), outdir]) usfile = os.path.join(outdir, 'upstream.wrap') assert(os.path.isfile(usfile)) config = configparser.ConfigParser() @@ -82,7 +82,7 @@ def install(sproj): if os.path.isdir(sproj_dir): print('Subproject is already there. To update, nuke the dir and reinstall.') return 1 - blist = gh_get('https://api.github.com/repos/mesonbuild/%s/branches' % sproj) + blist = gh_get('https://api.github.com/repos/mesonbuild/{}/branches'.format(sproj)) blist = [b['name'] for b in blist] blist = [b for b in blist if b != 'master'] blist.sort() |