diff options
Diffstat (limited to 'Lib/xml/dom/expatbuilder.py')
-rw-r--r-- | Lib/xml/dom/expatbuilder.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/xml/dom/expatbuilder.py b/Lib/xml/dom/expatbuilder.py index a2f8a33..fdb5598 100644 --- a/Lib/xml/dom/expatbuilder.py +++ b/Lib/xml/dom/expatbuilder.py @@ -476,8 +476,8 @@ class FilterVisibilityController(object): if val == FILTER_INTERRUPT: raise ParseEscape if val not in _ALLOWED_FILTER_RETURNS: - raise ValueError, \ - "startContainer() returned illegal value: " + repr(val) + raise ValueError( + "startContainer() returned illegal value: " + repr(val)) return val else: return FILTER_ACCEPT @@ -496,8 +496,8 @@ class FilterVisibilityController(object): # node is handled by the caller return FILTER_REJECT if val not in _ALLOWED_FILTER_RETURNS: - raise ValueError, \ - "acceptNode() returned illegal value: " + repr(val) + raise ValueError( + "acceptNode() returned illegal value: " + repr(val)) return val else: return FILTER_ACCEPT |