/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/bencode.py

  • Committer: Jelmer Vernooij
  • Date: 2020-05-06 02:13:25 UTC
  • mfrom: (7490.7.21 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200506021325-awbmmqu1zyorz7sj
Merge 3.1 branch.

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
19
from . import osutils
22
20
 
23
21
try:
24
22
    from ._bencode_pyx import bdecode, bdecode_as_tuple, bencode, Bencached
25
23
except ImportError as e:
26
24
    osutils.failed_to_load_extension(e)
27
 
    from .util._bencode_py import bdecode, bdecode_as_tuple, bencode, Bencached
 
25
    from .util._bencode_py import (  # noqa: F401
 
26
        bdecode,
 
27
        bdecode_as_tuple,
 
28
        bencode,
 
29
        Bencached,
 
30
        )