Title: [290799] trunk/Tools
Revision
290799
Author
[email protected]
Date
2022-03-03 16:53:08 -0800 (Thu, 03 Mar 2022)

Log 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.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (290798 => 290799)


--- trunk/Tools/ChangeLog	2022-03-03 23:46:29 UTC (rev 290798)
+++ trunk/Tools/ChangeLog	2022-03-04 00:53:08 UTC (rev 290799)
@@ -1,3 +1,20 @@
+2022-03-03  Lauro Moura  <[email protected]>
+
+        [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.
+
 2022-03-03  Jonathan Bedard  <[email protected]>
 
         [webkitcorepy] Disable prompt when saving credentials

Modified: trunk/Tools/Scripts/check-for-global-bss-symbols-in-webkitgtk-libs (290798 => 290799)


--- trunk/Tools/Scripts/check-for-global-bss-symbols-in-webkitgtk-libs	2022-03-03 23:46:29 UTC (rev 290798)
+++ trunk/Tools/Scripts/check-for-global-bss-symbols-in-webkitgtk-libs	2022-03-04 00:53:08 UTC (rev 290799)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import re
 import subprocess
@@ -10,7 +10,7 @@
     data = ""
     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]+ +(.*)$')
     for line in data.splitlines():
-        m = pattern.match(line)
+        m = pattern.match(line.decode('utf-8', 'ignore'))
         if not m:
             continue
         if sfilter is None or sfilter(m.group(1)):

Modified: trunk/Tools/gtk/jhbuildrc (290798 => 290799)


--- trunk/Tools/gtk/jhbuildrc	2022-03-03 23:46:29 UTC (rev 290798)
+++ trunk/Tools/gtk/jhbuildrc	2022-03-04 00:53:08 UTC (rev 290799)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Copyright (C) 2011-2014 Igalia S.L.
 #
 # This library is free software; you can redistribute it and/or

Modified: trunk/Tools/gtk/ycm_extra_conf.py (290798 => 290799)


--- trunk/Tools/gtk/ycm_extra_conf.py	2022-03-03 23:46:29 UTC (rev 290798)
+++ trunk/Tools/gtk/ycm_extra_conf.py	2022-03-04 00:53:08 UTC (rev 290799)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Copyright (C) 2013 Danilo Cesar Lemes de Paula <[email protected]>
 # Copyright (C) 2014 ChangSeok Oh <[email protected]>
 #

Modified: trunk/Tools/jhbuild/jhbuild-wrapper (290798 => 290799)


--- trunk/Tools/jhbuild/jhbuild-wrapper	2022-03-03 23:46:29 UTC (rev 290798)
+++ trunk/Tools/jhbuild/jhbuild-wrapper	2022-03-04 00:53:08 UTC (rev 290799)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Copyright (C) 2011 Igalia S.L.
 # Copyright (C) 2012 Gustavo Noronha Silva <[email protected]>
 # Copyright (C) 2012 Intel Corporation
@@ -59,7 +59,7 @@
     if process.returncode != 0:
         raise Exception('failed to find jhbuild revision: %s' % err)
 
-    return output.strip() == jhbuild_revision
+    return output.strip().decode('utf-8', 'ignore') == jhbuild_revision
 
 
 def update_jhbuild():

Modified: trunk/Tools/jhbuild/jhbuildrc_common.py (290798 => 290799)


--- trunk/Tools/jhbuild/jhbuildrc_common.py	2022-03-03 23:46:29 UTC (rev 290798)
+++ trunk/Tools/jhbuild/jhbuildrc_common.py	2022-03-04 00:53:08 UTC (rev 290799)
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 # Copyright (C) 2011 Igalia S.L.
 # Copyright (C) 2012 Intel Corporation
 #

Modified: trunk/Tools/wpe/jhbuildrc (290798 => 290799)


--- trunk/Tools/wpe/jhbuildrc	2022-03-03 23:46:29 UTC (rev 290798)
+++ trunk/Tools/wpe/jhbuildrc	2022-03-04 00:53:08 UTC (rev 290799)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Copyright (C) 2014 Igalia S.L.
 #
 # This library is free software; you can redistribute it and/or
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to