From 9a053166cdb0187d0514403e92e8719d9a3aa8ee Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Mon, 26 Oct 2009 16:02:01 +0000 Subject: [PATCH] rspec -> Rspec. TODO: change all XML literals into symbolic constants and define them visibly somewhere. --- sfatables/runtime.py | 2 +- sfatables/xmlrule.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sfatables/runtime.py b/sfatables/runtime.py index 0c6b8b1c..0ed38e06 100644 --- a/sfatables/runtime.py +++ b/sfatables/runtime.py @@ -55,7 +55,7 @@ class SFATablesRules: def add_request_context_to_rspec(self, doc): p = doc.xpathNewContext() - context = p.xpathEval("//rspec") + context = p.xpathEval("//Rspec") if (not context): raise Exception('Request is not an rspec') else: diff --git a/sfatables/xmlrule.py b/sfatables/xmlrule.py index 3d9eeda6..97940de2 100644 --- a/sfatables/xmlrule.py +++ b/sfatables/xmlrule.py @@ -57,7 +57,7 @@ class XMLRule: def add_rule_context_to_rspec(self, doc): p = doc.xpathNewContext() - context = p.xpathEval("//rspec") + context = p.xpathEval("//Rspec") if (not context): raise Exception('Request is not an rspec') else: -- 2.43.0