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

  • Committer: Jelmer Vernooij
  • Date: 2017-06-06 01:10:48 UTC
  • mto: (6656.2.4 integrate-bisect)
  • mto: This revision was merged to the branch mainline in revision 6674.
  • Revision ID: jelmer@jelmer.uk-20170606011048-ahf4exo5kvy3mwt1
Drop pyrex support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
This is the python implementation for DirState functions.
20
20
"""
21
21
 
 
22
from __future__ import absolute_import
 
23
 
22
24
import binascii
23
25
import bisect
24
26
import errno
26
28
import stat
27
29
import sys
28
30
 
29
 
from breezy import cache_utf8, errors, osutils
30
 
from breezy.dirstate import DirState
31
 
from breezy.osutils import parent_directories, pathjoin, splitpath
 
31
from . import cache_utf8, errors, osutils
 
32
from .dirstate import DirState
 
33
from .osutils import parent_directories, pathjoin, splitpath
32
34
 
33
35
 
34
36
# This is the Windows equivalent of ENOTDIR
40
42
cdef int ERROR_DIRECTORY
41
43
ERROR_DIRECTORY = 267
42
44
 
43
 
#python2.4 support, and other platform-dependent includes
44
45
cdef extern from "python-compat.h":
45
46
    unsigned long htonl(unsigned long)
46
47
 
120
121
    # void *memrchr(void *s, int c, size_t len)
121
122
 
122
123
# cimport all of the definitions we will need to access
123
 
from _static_tuple_c cimport import_static_tuple_c, StaticTuple, \
 
124
from ._static_tuple_c cimport import_static_tuple_c, StaticTuple, \
124
125
    StaticTuple_New, StaticTuple_SET_ITEM
125
126
 
126
127
import_static_tuple_c()