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:
5e08804
)
Update updateHostsFile.py
author
cclauss
<redacted>
Tue, 26 Apr 2016 13:49:31 +0000
(15:49 +0200)
committer
cclauss
<redacted>
Tue, 26 Apr 2016 13:49:31 +0000
(15:49 +0200)
updateHostsFile.py
patch
|
blob
|
history
diff --git
a/updateHostsFile.py
b/updateHostsFile.py
index 645239951d87e3b4aa5b17addcf2c27828b64b44..92d6e2403acaa0997119c4d41f2f4a335fa1ab65 100644
(file)
--- a/
updateHostsFile.py
+++ b/
updateHostsFile.py
@@
-270,7
+270,7
@@
def createInitialFile():
mergeFile = tempfile.NamedTemporaryFile()
for source in settings["sources"]:
filename = os.path.join(settings["datapath"], source, settings["datafilenames"])
- with open(
curFile, "r")
:
+ with open(
filename, "r") as curFile
:
#Done in a cross-python way
writeData(mergeFile, curFile.read())
git clone https://git.99rst.org/PROJECT