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

Changeset 290799 in webkit


Ignore:
Timestamp:
Mar 3, 2022, 4:53:08 PM (5 years ago)
Author:
Lauro Moura
Message:

[Python3] Switch a few more glib scripts to Python3
​https://bugs.webkit.org/show_bug.cgi?id=237442

Reviewed by Adrian Perez de Castro.

  • Scripts/check-for-global-bss-symbols-in-webkitgtk-libs: Update

shebang.
(bss_symbols): Decode Popen bytes output.

  • gtk/jhbuildrc: Update shebang.
  • gtk/ycm_extra_conf.py: Ditto.
  • jhbuild/jhbuild-wrapper: Ditto.

(jhbuild_at_expected_revision): Decode Popen bytes output.

  • jhbuild/jhbuildrc_common.py: Remove uneeded shebang.
  • wpe/jhbuildrc: Update shebang.
Location:
trunk/Tools
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r290796 r290799  
     12022-03-03  Lauro Moura  <lmoura@igalia.com>
     2
     3        [Python3] Switch a few more glib scripts to Python3
     4        https://bugs.webkit.org/show_bug.cgi?id=237442
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        * Scripts/check-for-global-bss-symbols-in-webkitgtk-libs: Update
     9        shebang.
     10        (bss_symbols): Decode Popen bytes output.
     11        * gtk/jhbuildrc: Update shebang.
     12        * gtk/ycm_extra_conf.py: Ditto.
     13        * jhbuild/jhbuild-wrapper: Ditto.
     14        (jhbuild_at_expected_revision): Decode Popen bytes output.
     15        * jhbuild/jhbuildrc_common.py: Remove uneeded shebang.
     16        * wpe/jhbuildrc: Update shebang.
     17
    1182022-03-03  Jonathan Bedard  <jbedard@apple.com>
    219
  • trunk/Tools/Scripts/check-for-global-bss-symbols-in-webkitgtk-libs

    r271151 r290799  
    1 #!/usr/bin/env python
     1#!/usr/bin/env python3
    22
    33import re
    … …  
    1111    pattern = re.compile('^[0-9a-f]+ ([a-zA-Z ])[a-zA-Z ][a-zA-Z ][a-zA-Z ][a-zA-Z ][a-zA-Z ][a-zA-Z ] \.bss\t[0-9a-f]+ +(.*)$')
    1212    for line in data.splitlines():
    13         m = pattern.match(line)
     13        m = pattern.match(line.decode('utf-8', 'ignore'))
    1414        if not m:
    1515            continue
  • trunk/Tools/gtk/jhbuildrc

    r225073 r290799  
    1 #!/usr/bin/env python
     1#!/usr/bin/env python3
    22# Copyright (C) 2011-2014 Igalia S.L.
    33#
  • trunk/Tools/gtk/ycm_extra_conf.py

    r239567 r290799  
    1 #!/usr/bin/env python
     1#!/usr/bin/env python3
    22# Copyright (C) 2013 Danilo Cesar Lemes de Paula <danilo.eu@gmail.com>
    33# Copyright (C) 2014 ChangSeok Oh <shivamidow@gmail.com>
  • trunk/Tools/jhbuild/jhbuild-wrapper

    r267529 r290799  
    1 #!/usr/bin/env python
     1#!/usr/bin/env python3
    22# Copyright (C) 2011 Igalia S.L.
    33# Copyright (C) 2012 Gustavo Noronha Silva <gns@gnome.org>
    … …  
    6060        raise Exception('failed to find jhbuild revision: %s' % err)
    6161
    62     return output.strip() == jhbuild_revision
     62    return output.strip().decode('utf-8', 'ignore') == jhbuild_revision
    6363
    6464
  • trunk/Tools/jhbuild/jhbuildrc_common.py

    r264618 r290799  
    1 #!/usr/bin/env python
    21# Copyright (C) 2011 Igalia S.L.
    32# Copyright (C) 2012 Intel Corporation
  • trunk/Tools/wpe/jhbuildrc

    r224151 r290799  
    1 #!/usr/bin/env python
     1#!/usr/bin/env python3
    22# Copyright (C) 2014 Igalia S.L.
    33#
Note: See TracChangeset for help on using the changeset viewer.