From cef5d278166027db15348b35c111c89c0138a4c0 Mon Sep 17 00:00:00 2001 From: brandon-b-miller Date: Mon, 3 Jun 2024 16:10:18 -0500 Subject: [PATCH] adjust create signature again --- python/cudf/cudf/_lib/pylibcudf/strings/regex_program.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/cudf/cudf/_lib/pylibcudf/strings/regex_program.pyx b/python/cudf/cudf/_lib/pylibcudf/strings/regex_program.pyx index 49d199b11b8..d605b0aba02 100644 --- a/python/cudf/cudf/_lib/pylibcudf/strings/regex_program.pyx +++ b/python/cudf/cudf/_lib/pylibcudf/strings/regex_program.pyx @@ -18,7 +18,7 @@ cdef class RegexProgram: raise ValueError("Do not instantiate RegexProgram directly, use create") @staticmethod - def create(str pattern, regex_flags flags): + def create(str pattern, int flags): cdef unique_ptr[regex_program] c_prog cdef regex_flags c_flags cdef string c_pattern = pattern.encode() @@ -26,7 +26,7 @@ cdef class RegexProgram: cdef RegexProgram ret = RegexProgram.__new__(RegexProgram) if isinstance(flags, object): if isinstance(flags, (int, RegexFlags)): - c_flags = flags + c_flags = flags with nogil: c_prog = regex_program.create(c_pattern, c_flags)