<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>260729</bug_id>
          
          <creation_ts>2023-08-25 12:12:23 -0700</creation_ts>
          <short_desc>SyntaxWarning when running &apos;git-webkit pr&apos;</short_desc>
          <delta_ts>2023-09-01 10:49:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1973588</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-25 12:12:23 -0700</bug_when>
    <thetext>I see some errors when running &apos;git-webkit pr&apos;:

Downloading cryptography-36.0.2...
Installed cryptography-36.0.2!
Switched to a new branch &apos;eng/python-autoinstaller-is-broken-with-python-3-12&apos;
Created the local development branch &apos;eng/python-autoinstaller-is-broken-with-python-3-12&apos;
/home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitpy/common/checkout/checkout.py:52: SyntaxWarning: invalid escape sequence &apos;\[&apos;
  COMMIT_SUBJECT_RE = re.compile(b&apos;Subject: \[PATCH ?(\d+\/\d+)?] (.+)&apos;)
/home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitpy/common/checkout/checkout.py:53: SyntaxWarning: invalid escape sequence &apos;\(&apos;
  FILTER_BRANCH_PROGRAM = &apos;&apos;&apos;import re
error: invalid key: branch.eng/python-autoinstaller-is-broken-with-python-3-12.cherry_picked
  Running status to find changed, added, or removed files.
  Reviewing diff to determine which lines changed.

The SyntaxWarning is new in python 3.12.

I will report a separate issue for the &quot;error: invalid key&quot; problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973591</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-25 12:14:14 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #0)
&gt; I will report a separate issue for the &quot;error: invalid key&quot; problem.

Bug #260730</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973603</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-25 12:34:07 -0700</bug_when>
    <thetext>Here is a fix:

diff --git a/Tools/Scripts/webkitpy/common/checkout/checkout.py b/Tools/Scripts/webkitpy/common/checkout/checkout.py
index aefa8c7b4d05..e2f72653e70c 100644
--- a/Tools/Scripts/webkitpy/common/checkout/checkout.py
+++ b/Tools/Scripts/webkitpy/common/checkout/checkout.py
@@ -49,8 +49,8 @@ if sys.version_info &gt; (3, 0):
 # FIXME: Move a bunch of ChangeLog-specific processing from SCM to this object.
 # NOTE: All paths returned from this class should be absolute.
 class Checkout(object):
-    COMMIT_SUBJECT_RE = re.compile(b&apos;Subject: \[PATCH ?(\d+\/\d+)?] (.+)&apos;)
-    FILTER_BRANCH_PROGRAM = &apos;&apos;&apos;import re
+    COMMIT_SUBJECT_RE = re.compile(r&apos;Subject: \[PATCH ?(\d+\/\d+)?] (.+)&apos;)
+    FILTER_BRANCH_PROGRAM = r&apos;&apos;&apos;import re
 import sys
 
 lines = [l for l in sys.stdin]

I will create a pull request for this after bug #260726 is fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973606</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-25 12:35:37 -0700</bug_when>
    <thetext>Oh, and the problem was the backslash \ is a python string escape rather than a regex escape. Each \ would need to be \\ to be a regex escape. The leading r switches to &quot;raw string notation&quot; to avoid this problem. https://docs.python.org/3.12/library/re.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1974273</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-29 13:19:21 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/17196</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975034</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-09-01 10:48:46 -0700</bug_when>
    <thetext>Committed 267558@main (ade70bdb664e): &lt;https://commits.webkit.org/267558@main&gt;

Reviewed commits have been landed. Closing PR #17196 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975035</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-09-01 10:49:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/114828777&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>