summaryrefslogtreecommitdiffstats
path: root/Lib/xml/sax/xmlreader.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-24 18:57:22 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-24 18:57:22 (GMT)
commit70e79803fcc93e19808faa240a5f5e4854d0b077 (patch)
tree0e862edc9d0ae630f673988401418df2bbce59d6 /Lib/xml/sax/xmlreader.py
parent75d38e992e9e3be428e51bcfe4bd5b201e953236 (diff)
downloadcpython-70e79803fcc93e19808faa240a5f5e4854d0b077.zip
cpython-70e79803fcc93e19808faa240a5f5e4854d0b077.tar.gz
cpython-70e79803fcc93e19808faa240a5f5e4854d0b077.tar.bz2
r698@Silves: collinwinter | 2007-08-24 10:57:15 -0700
Normalize raise statements in Lib/xml/.
Diffstat (limited to 'Lib/xml/sax/xmlreader.py')
-rw-r--r--Lib/xml/sax/xmlreader.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py
index 4503315..6264ee3 100644
--- a/Lib/xml/sax/xmlreader.py
+++ b/Lib/xml/sax/xmlreader.py
@@ -295,12 +295,12 @@ class AttributesImpl:
def getNameByQName(self, name):
if name not in self._attrs:
- raise KeyError, name
+ raise KeyError(name)
return name
def getQNameByName(self, name):
if name not in self._attrs:
- raise KeyError, name
+ raise KeyError(name)
return name
def getNames(self):
@@ -350,14 +350,14 @@ class AttributesNSImpl(AttributesImpl):
if qname == name:
return self._attrs[nsname]
- raise KeyError, name
+ raise KeyError(name)
def getNameByQName(self, name):
for (nsname, qname) in self._qnames.items():
if qname == name:
return nsname
- raise KeyError, name
+ raise KeyError(name)
def getQNameByName(self, name):
return self._qnames[name]