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

Changeset 294358 in webkit


Ignore:
Timestamp:
May 17, 2022, 4:17:48 PM (4 years ago)
Author:
Adrian Perez de Castro
Message:

[Python3] Fix Tools/Scripts/check-for-invalid-symbols-in-version-script
​https://bugs.webkit.org/show_bug.cgi?id=240543

Reviewed by Michael Catanzaro.

  • Tools/Scripts/check-for-invalid-symbols-in-version-script: Change shebang to use "python3", and pass an "encoding" argument to the Popen constructor to read strings instead of bytes from the subprocess pipe.

Canonical link: ​https://commits.webkit.org/250663@main

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/Scripts/check-for-invalid-symbols-in-version-script

    r271151 r294358  
    1 #!/usr/bin/env python
     1#!/usr/bin/env python3
    22
    33import subprocess
    … …  
    2626
    2727symbols = script_symbols(sys.argv[1])
    28 p = subprocess.Popen(['objdump', '-t', '-C', sys.argv[2]], stdout=subprocess.PIPE)
     28p = subprocess.Popen(['objdump', '-t', '-C', sys.argv[2]], stdout=subprocess.PIPE, encoding="ascii")
    2929data = p.communicate()[0]
    3030
Note: See TracChangeset for help on using the changeset viewer.