~jderose/ubuntu/precise/dbus-python/oneiric-backport

« back to all changes in this revision

Viewing changes to dbus/_expat_introspect_parser.py

  • Committer: Package Import Robot
  • Author(s): Barry Warsaw
  • Date: 2012-01-12 14:47:33 UTC
  • Revision ID: package-import@ubuntu.com-20120112144733-xtfbmgw30h0j40d2
Tags: 0.84.0-2ubuntu1
* debian/patches:
  - since-0.84.0.patch: Upstream unreleased changes from git tag
    dbus-python-0.84.0 to HEAD.  This is a precursor to the following.
  - python3-support.patch: Upstream unreleased changes from git
    `python3` branch for supporting Python 3. (LP: #893091)
* debian/rules: Enable the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24
24
# DEALINGS IN THE SOFTWARE.
25
25
 
26
 
from xml.parsers.expat import ExpatError, ParserCreate
 
26
from xml.parsers.expat import ParserCreate
27
27
from dbus.exceptions import IntrospectionParserException
28
28
 
29
29
class _Parser(object):
81
81
    """
82
82
    try:
83
83
        return _Parser().parse(data)
84
 
    except Exception, e:
 
84
    except Exception as e:
85
85
        raise IntrospectionParserException('%s: %s' % (e.__class__, e))