~ubuntu-branches/ubuntu/trusty/h5py/trusty-proposed

« back to all changes in this revision

Viewing changes to h5py/_errors.pyx

  • Committer: Package Import Robot
  • Author(s): Soeren Sonnenburg
  • Date: 2011-10-12 12:47:45 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: package-import@ubuntu.com-20111012124745-vj0w8zil1zrt26vo
Tags: 2.0.1-1
* New upstream version.
* Remove h5py_config.pickle created on
  python setup.py clean (Closes: #643152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    if mj_desc == NULL or mn_desc == NULL:
100
100
        raise RuntimeError("Failed to obtain error code description")
101
101
 
102
 
    msg = ("%s (%s: %s)" % (desc, mj_desc, mn_desc)).encode('utf-8')
 
102
    msg = ("%s (%s: %s)" % (desc.decode('utf-8'), 
 
103
                            mj_desc.decode('utf-8'), 
 
104
                            mn_desc.decode('utf-8'))  ).encode('utf-8')
103
105
 
104
106
    PyErr_SetString(eclass, msg)
105
107