From 7fc989cee8c638fb1664839aafadd3cad148a72f Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 15 Nov 2023 15:42:49 +0100 Subject: [PATCH] fixed python3 syntaxWarning: invalid escape sequence --- chromium-latest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chromium-latest.py b/chromium-latest.py index 5af86286..5864be9f 100755 --- a/chromium-latest.py +++ b/chromium-latest.py @@ -1,4 +1,5 @@ #!/usr/bin/python3 +# Copyright 2021-2023, Than Ngo # Copyright 2010,2015-2019 Tom Callaway # Copyright 2013-2016 Tomas Popela # 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!")