Changeset 267529 in webkit
- Timestamp:
- Sep 24, 2020, 7:17:22 AM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
jhbuild/jhbuild-wrapper (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r267524 r267529 1 2020-09-24 Sergio Villar Senin <svillar@igalia.com> 2 3 [JHBUILD] Port jhbuild-wrapper to python3 4 https://bugs.webkit.org/show_bug.cgi?id=216916 5 6 Reviewed by Adrian Perez de Castro. 7 8 Python2 is at its EOL, distributions are starting to remove it and python3 should be used by default now. Migrated 9 jhbuild wrapper code to python3 (while keeping backwards compatibility with python2 just in case). 10 11 * jhbuild/jhbuild-wrapper: 12 (ensure_jhbuild): Replace has_key() by the more pythonic construction with 'in'. 13 1 14 2020-09-24 Carlos Garcia Campos <cgarcia@igalia.com> 2 15 -
trunk/Tools/jhbuild/jhbuild-wrapper
r253539 r267529 1 #!/usr/bin/env python 21 #!/usr/bin/env python 2 2 # Copyright (C) 2011 Igalia S.L. 3 3 # Copyright (C) 2012 Gustavo Noronha Silva <gns@gnome.org> … … 118 118 # Work-around the fact that we may get called from inside the jhbuild environment 119 119 # which will cause problems if we just cleaned the jhbuild install root 120 if os.environ.has_key('UNDER_JHBUILD') and os.environ.has_key('ACLOCAL_FLAGS'):120 if 'UNDER_JHBUILD' in os.environ and 'ACLOCAL_FLAGS' in os.environ: 121 121 del os.environ['ACLOCAL_FLAGS'] 122 122
Note:
See TracChangeset
for help on using the changeset viewer.