From e53efe0e84c56a5939ea32cefaa02187f9555094 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Tue, 10 Jul 2012 15:49:53 -0400 Subject: [PATCH] Actually, create a copy of the dict. --- earwigbot/wiki/sitesdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/wiki/sitesdb.py b/earwigbot/wiki/sitesdb.py index 927ebef..55b90bc 100644 --- a/earwigbot/wiki/sitesdb.py +++ b/earwigbot/wiki/sitesdb.py @@ -204,7 +204,7 @@ class SitesDB(object): search_config["exclusions_db"] = self._exclusions_db if not sql: - sql = config.wiki.get("sql", {}) + sql = config.wiki.get("sql", {}).copy() for key, value in sql.iteritems(): if isinstance(value, basestring) and "$1" in value: sql[key] = value.replace("$1", name)