/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_pyx.pyx

  • Committer: Jelmer Vernooij
  • Date: 2017-06-10 01:35:53 UTC
  • mto: (6670.4.8 move-bzr)
  • mto: This revision was merged to the branch mainline in revision 6681.
  • Revision ID: jelmer@jelmer.uk-20170610013553-560y7mn3su4pp763
Fix remaining tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Pyrex implementation for bencode coder/decoder"""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
 
20
22
cdef extern from "stddef.h":
21
23
    ctypedef unsigned int size_t
58
60
    void D_UPDATE_TAIL(Decoder, int n)
59
61
    void E_UPDATE_TAIL(Encoder, int n)
60
62
 
61
 
# To maintain compatibility with older versions of pyrex, we have to use the
62
 
# relative import here, rather than 'bzrlib._static_tuple_c'
63
 
from _static_tuple_c cimport StaticTuple, StaticTuple_CheckExact, \
 
63
from ._static_tuple_c cimport StaticTuple, StaticTuple_CheckExact, \
64
64
    import_static_tuple_c
65
65
 
66
66
import_static_tuple_c()