From: XhmikosR Date: Wed, 3 Apr 2024 05:18:10 +0000 (+0300) Subject: updateHostsFile.py: use a raw string for comment X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ae8c5b1cbad2cbf69fe93deba3910c87f7e25d04;p=stevenblack-hosts.git updateHostsFile.py: use a raw string for comment This fixes a SyntaxWarning with Python 3.12: ``` /home/runner/work/hosts/hosts/updateHostsFile.py:1386: SyntaxWarning: invalid escape sequence '\W' """ ``` --- diff --git a/updateHostsFile.py b/updateHostsFile.py index b250556ca..c31ed79bd 100755 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -1383,7 +1383,7 @@ def update_readme_data(readme_file, **readme_updates): def move_hosts_file_into_place(final_file): - """ + r""" Move the newly-created hosts file into its correct location on the OS. For UNIX systems, the hosts file is "etc/hosts." On Windows, it's