fixed python3 syntaxWarning: invalid escape sequence

i9ce
Than Ngo 10 months ago
parent 24a4c2ac17
commit 7fc989cee8

@ -1,4 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
# Copyright 2021-2023, Than Ngo <than@redhat.com>
# Copyright 2010,2015-2019 Tom Callaway <tcallawa@redhat.com> # Copyright 2010,2015-2019 Tom Callaway <tcallawa@redhat.com>
# Copyright 2013-2016 Tomas Popela <tpopela@redhat.com> # Copyright 2013-2016 Tomas Popela <tpopela@redhat.com>
# Permission is hereby granted, free of charge, to any person obtaining # Permission is hereby granted, free of charge, to any person obtaining
@ -324,7 +325,7 @@ if __name__ == '__main__':
delete_chromium_dir(directory) delete_chromium_dir(directory)
# There has got to be a better, more portable way to do this. # 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. # 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" chromium_clean_xz_file = "chromium-" + chromium_version + "-clean.tar.xz"
@ -339,6 +340,6 @@ if __name__ == '__main__':
if (not args.prep): if (not args.prep):
print("Compressing cleaned tree, please wait...") print("Compressing cleaned tree, please wait...")
os.chdir(chromium_root_dir) 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!") print("Finished!")

Loading…
Cancel
Save