From 3e6a5c42c8bbc3ea340c6fa6b97b08ecc7eba0fc Mon Sep 17 00:00:00 2001 From: Ben Limmer Date: Sat, 13 Jul 2013 16:24:06 -0600 Subject: [PATCH] Correcting syntax error with elif. --- updateHostsFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updateHostsFile.py b/updateHostsFile.py index ead65d969..805f9ad74 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -208,7 +208,7 @@ def moveHostsFileIntoPlace(finalFile): else: if(subprocess.call(["/usr/bin/sudo", "/etc/rc.d/init.d/nscd", "restart"])): printFailure("Flushing the DNS Cache failed.") - else if (os.name == 'nt'): + elif (os.name == 'nt'): print 'Automatically moving the hosts file in place is not yet supported.' print 'Please move the generated file to %SystemRoot%\system32\drivers\etc\hosts'