public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9-next: fixed python3 syntaxWarning: invalid escape sequence
@ 2026-08-07 16:05 Than Ngo
  0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-07 16:05 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel9-next
Commit : 7fc989cee8c638fb1664839aafadd3cad148a72f
Author : Than Ngo <than@redhat.com>
Date   : 2023-11-15T15:42:49+01:00
Stats  : +3/-2 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/7fc989cee8c638fb1664839aafadd3cad148a72f?branch=epel9-next

Log:
fixed python3 syntaxWarning: invalid escape sequence

---
diff --git a/chromium-latest.py b/chromium-latest.py
index 5af8628..5864be9 100755
--- a/chromium-latest.py
+++ b/chromium-latest.py
@@ -1,4 +1,5 @@
 #!/usr/bin/python3
+# Copyright 2021-2023, Than Ngo <than@redhat.com>
 # Copyright 2010,2015-2019 Tom Callaway <tcallawa@redhat.com>
 # Copyright 2013-2016 Tomas Popela <tpopela@redhat.com>
 # Permission is hereby granted, free of charge, to any person obtaining
@@ -324,7 +325,7 @@ if __name__ == '__main__':
       delete_chromium_dir(directory)
 
   # There has got to be a better, more portable way to do this.
-  os.system("find %s -depth -name reference_build -type d -exec rm -rf {} \;" % latest_dir)
+  os.system("find %s -depth -name reference_build -type d -exec rm -rf {} \\;" % latest_dir)
 
   # I could not find good bindings for xz/lzma support, so we system call here too.
   chromium_clean_xz_file = "chromium-" + chromium_version + "-clean.tar.xz"
@@ -339,6 +340,6 @@ if __name__ == '__main__':
   if (not args.prep):
     print("Compressing cleaned tree, please wait...")
     os.chdir(chromium_root_dir)
-    os.system("tar --exclude=\.svn -cf - chromium-%s | xz -9 -T 0 -f > %s" % (chromium_version, chromium_clean_xz_file))
+    os.system("tar --exclude=\\.svn -cf - chromium-%s | xz -9 -T 0 -f > %s" % (chromium_version, chromium_clean_xz_file))
 
   print("Finished!")

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-07 16:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 16:05 [rpms/chromium] epel9-next: fixed python3 syntaxWarning: invalid escape sequence Than Ngo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox