From 912a30d7e5c93e59a615031917ebe9fb81c833e9 Mon Sep 17 00:00:00 2001 From: Fredrik Wahlberg Date: Tue, 27 Jan 2004 22:03:31 +0000 Subject: [PATCH] Fixed bug in readcfg(), extra ) --- dnsupdate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnsupdate.py b/dnsupdate.py index 82bfd6b..00611cc 100644 --- a/dnsupdate.py +++ b/dnsupdate.py @@ -126,8 +126,8 @@ def readcfg(msg, show=""): if not msg.has_key('cfgfile'): if os.path.exists(os.path.expanduser("~/.dnsupdaterc")): cfgfile = open(os.path.expanduser("~/.dnsupdaterc"), 'r') - elif os.path.exists("/etc/dnsupdaterc")): - cfgfile = open("/etc/dnsupdaterc"), 'r') + elif os.path.exists("/etc/dnsupdaterc"): + cfgfile = open("/etc/dnsupdaterc", 'r') else: return msg else: