/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-06-10 00:09:19 UTC
  • mfrom: (6665.1.4 cython-only)
  • Revision ID: breezy.the.bot@gmail.com-20170610000919-1v2kz98d2cr4wnaz
Drop support for pyrex.

Merged from https://code.launchpad.net/~jelmer/brz/drop-pyrex/+merge/325137

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()