[Webkit-unassigned] [Bug 215156] Make report-non-inclusive-language ignore files within .svn and .git

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 5 12:46:15 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215156

--- Comment #4 from Beth Dakin <bdakin at apple.com> ---
I might be being too much of a Python n00b here, but this patch did not work for me. .svn files were still traversed:

Index: Scripts/report-non-inclusive-language
===================================================================
--- Scripts/report-non-inclusive-language       (revision 265267)
+++ Scripts/report-non-inclusive-language       (working copy)
@@ -54,6 +55,7 @@

 root = os.getcwd()
 for subroot, directories, files in os.walk(root):
+    directories = [directory for directory in directories if not directory.startswith(".svn")]
     prefix = subroot[len(root) + 1:]
     for file in files:
         if file.startswith("ChangeLog"):

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200805/9cf9fb5d/attachment.htm>


More information about the webkit-unassigned mailing list