Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
Massive style cleanup: Move to new raise exception style; for motivat…
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn Pieters committed Aug 30, 2005
1 parent 1a16ca7 commit 13f4193
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions xpdl.py
Expand Up @@ -76,9 +76,8 @@ def startElementNS(self, name, qname, attrs):
try:
result = handler(self, attrs)
except:
raise HandlerError, (
sys.exc_info()[1], name[1], self.locator
), sys.exc_info()[2]
raise HandlerError(sys.exc_info()[1], name[1], self.locator
), None, sys.exc_info()[2]
else:
result = None

Expand All @@ -96,9 +95,8 @@ def endElementNS(self, name, qname):
try:
handler(self, last)
except:
raise HandlerError, (
sys.exc_info()[1], name[1], self.locator
), sys.exc_info()[2]
raise HandlerError(sys.exc_info()[1], name[1], self.locator
), None, sys.exc_info()[2]

self.text = u''

Expand Down

0 comments on commit 13f4193

Please sign in to comment.