~ubuntu-branches/ubuntu/wily/pyicu/wily

« back to all changes in this revision

Viewing changes to regex.cpp

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2015-08-03 23:42:49 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20150803234249-bha0jtxniodpe5hc
Tags: 1.9.2-0ubuntu1
* New upstream version.
* Builds using ICU 55.

Show diffs side-by-side

added added

removed removed

Lines of Context:
953
953
 
954
954
void _init_regex(PyObject *m)
955
955
{
956
 
    RegexPatternType.tp_str = (reprfunc) t_regexpattern_str;
957
 
    RegexPatternType.tp_richcompare = (richcmpfunc) t_regexpattern_richcmp;
 
956
    RegexPatternType_.tp_str = (reprfunc) t_regexpattern_str;
 
957
    RegexPatternType_.tp_richcompare = (richcmpfunc) t_regexpattern_richcmp;
958
958
 
959
959
#if U_ICU_VERSION_HEX >= 0x04000000
960
 
    RegexMatcherType.tp_traverse = (traverseproc) t_regexmatcher_traverse;
961
 
    RegexMatcherType.tp_clear = (inquiry) t_regexmatcher_clear;
962
 
    RegexMatcherType.tp_flags |= Py_TPFLAGS_HAVE_GC;
 
960
    RegexMatcherType_.tp_traverse = (traverseproc) t_regexmatcher_traverse;
 
961
    RegexMatcherType_.tp_clear = (inquiry) t_regexmatcher_clear;
 
962
    RegexMatcherType_.tp_flags |= Py_TPFLAGS_HAVE_GC;
963
963
#endif
964
 
    RegexMatcherType.tp_str = (reprfunc) t_regexmatcher_str;
 
964
    RegexMatcherType_.tp_str = (reprfunc) t_regexmatcher_str;
965
965
 
966
966
    INSTALL_CONSTANTS_TYPE(URegexpFlag, m);
967
967