diff --git a/src/re2.pyx b/src/re2.pyx index 95b17c8e..42320e2d 100644 --- a/src/re2.pyx +++ b/src/re2.pyx @@ -459,7 +459,7 @@ cdef class Pattern: cdef _print_pattern(self): cdef _re2.cpp_string * s s = <_re2.cpp_string *>_re2.addressofs(self.re_pattern.pattern()) - print cpp_to_pystring(s[0]) + "\n" + print(cpp_to_pystring(s[0]) + "\n") sys.stdout.flush()