git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
bd064ee
)
updateHostsFile.py: use a raw string for comment
author
XhmikosR
<redacted>
Wed, 3 Apr 2024 05:18:10 +0000
(08:18 +0300)
committer
GitHub
<redacted>
Wed, 3 Apr 2024 05:18:10 +0000
(08:18 +0300)
This fixes a SyntaxWarning with Python 3.12:
```
/home/runner/work/hosts/hosts/updateHostsFile.py:1386: SyntaxWarning: invalid escape sequence '\W'
"""
```
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index b250556ca94401afde421ac040abfbf66fcd7ea7..c31ed79bd3a09ea5dc676a137aa74f0142e00309 100755
(executable)
--- 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
git clone https://git.99rst.org/PROJECT