mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
r698@Silves: collinwinter | 2007-08-24 10:57:15 -0700
Normalize raise statements in Lib/xml/.
This commit is contained in:
parent
75d38e992e
commit
70e79803fc
4 changed files with 14 additions and 14 deletions
|
@ -77,7 +77,7 @@ def getDOMImplementation(name = None, features = ()):
|
|||
if _good_enough(dom, features):
|
||||
return dom
|
||||
|
||||
raise ImportError,"no suitable DOM implementation found"
|
||||
raise ImportError("no suitable DOM implementation found")
|
||||
|
||||
def _parse_feature_string(s):
|
||||
features = []
|
||||
|
@ -87,7 +87,7 @@ def _parse_feature_string(s):
|
|||
while i < length:
|
||||
feature = parts[i]
|
||||
if feature[0] in "0123456789":
|
||||
raise ValueError, "bad feature name: %r" % (feature,)
|
||||
raise ValueError("bad feature name: %r" % (feature,))
|
||||
i = i + 1
|
||||
version = None
|
||||
if i < length:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue