⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 267529 in webkit


Ignore:
Timestamp:
Sep 24, 2020, 7:17:22 AM (6 years ago)
Author:
svillar@igalia.com
Message:

[JHBUILD] Port jhbuild-wrapper to python3
https://bugs.webkit.org/show_bug.cgi?id=216916

Reviewed by Adrian Perez de Castro.

Python2 is at its EOL, distributions are starting to remove it and python3 should be used by default now. Migrated
jhbuild wrapper code to python3 (while keeping backwards compatibility with python2 just in case).

  • jhbuild/jhbuild-wrapper:

(ensure_jhbuild): Replace has_key() by the more pythonic construction with 'in'.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r267524 r267529  
     12020-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
    1142020-09-24  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • trunk/Tools/jhbuild/jhbuild-wrapper

    r253539 r267529  
    1 #!/usr/bin/env python2
     1#!/usr/bin/env python
    22# Copyright (C) 2011 Igalia S.L.
    33# Copyright (C) 2012 Gustavo Noronha Silva <gns@gnome.org>
     
    118118# Work-around the fact that we may get called from inside the jhbuild environment
    119119# 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'):
     120if 'UNDER_JHBUILD' in os.environ and 'ACLOCAL_FLAGS' in os.environ:
    121121    del os.environ['ACLOCAL_FLAGS']
    122122
Note: See TracChangeset for help on using the changeset viewer.