~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bencode.py

(vila) Fix test failures blocking package builds. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Wrapper around the bencode pyrex and python implementation"""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
 
21
from bzrlib import osutils
 
22
 
19
23
try:
20
24
    from bzrlib._bencode_pyx import bdecode, bdecode_as_tuple, bencode, Bencached
21
 
except ImportError:
 
25
except ImportError, e:
 
26
    osutils.failed_to_load_extension(e)
22
27
    from bzrlib.util._bencode_py import bdecode, bdecode_as_tuple, bencode, Bencached