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:
ffc17dd
)
More succinct formatting of the generation time.
author
Steven Black
<redacted>
Tue, 23 Feb 2016 14:30:34 +0000
(09:30 -0500)
committer
Steven Black
<redacted>
Tue, 23 Feb 2016 14:30:34 +0000
(09:30 -0500)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 5fb711228ca7ef1139212fdfd4dd6d8a197293a2..f2d5c111876e45ffc7f19ee988e9180041daa15a 100644
(file)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-362,7
+362,7
@@
def writeOpeningHeader(finalFile):
def updateReadme(numberOfRules):
with open(README_FILE, "wt") as out:
for line in open(README_TEMPLATE):
- line = line.replace( '@GEN_DATE@', time.strftime("%B %d %Y
at %H:%M:%S GMT
", time.gmtime()))
+ line = line.replace( '@GEN_DATE@', time.strftime("%B %d %Y
.
", time.gmtime()))
out.write(line.replace('@NUM_ENTRIES@', "{:,}".format(numberOfRules)))
def moveHostsFileIntoPlace(finalFile):
git clone https://git.99rst.org/PROJECT