~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_c.pyx

  • Committer: John Arbash Meinel
  • Date: 2007-10-10 21:18:06 UTC
  • mto: This revision was merged to the branch mainline in revision 2909.
  • Revision ID: john@arbash-meinel.com-20071010211806-2j9rg6wzrqh7yy4u
Switch from __new__ to __init__ to avoid potential pyrex upgrade problems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
478
478
    cdef char *cur_cstr # Pointer to the current record
479
479
    cdef char *next # Pointer to the end of this record
480
480
 
481
 
    def __new__(self, text):
 
481
    def __init__(self, text):
482
482
        self.text = text
483
483
        self.text_cstr = PyString_AsString(text)
484
484
        self.text_size = PyString_Size(text)