mirror of
https://github.com/StevenBlack/hosts.git
synced 2024-07-02 18:45:52 +02:00
This code is never called.
This commit is contained in:
parent
962010ddcc
commit
d089583a45
|
@ -276,18 +276,6 @@ def getUpdateURLsFromFile(source):
|
|||
return retURLs
|
||||
# End Update Logic
|
||||
|
||||
|
||||
def getUpdateURLFromFile(source):
|
||||
pathToUpdateFile = os.path.join(settings["datapath"], source, settings["sourcedatafilename"])
|
||||
if os.path.exists(pathToUpdateFile):
|
||||
with open(pathToUpdateFile, "r") as updateFile:
|
||||
updateData = json.load(updateFile)
|
||||
return [updateData["url"]]
|
||||
printFailure("Warning: Can't find the update file for source " + source + "\n" +
|
||||
"Make sure that there's a file at " + pathToUpdateFile)
|
||||
return None
|
||||
# End Update Logic
|
||||
|
||||
# File Logic
|
||||
def createInitialFile():
|
||||
mergeFile = tempfile.NamedTemporaryFile()
|
||||
|
|
Loading…
Reference in New Issue
Block a user