diff options
Diffstat (limited to 'jq.pyx')
| -rw-r--r-- | jq.pyx | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -131,8 +131,12 @@ cdef class _Program(object): program_with_input._bytes_input = string_input.encode("utf8") return program_with_input + @property + def program_string(self): + return self._program_bytes.decode("utf8") + def __repr__(self): - return "jq.compile({!r})".format(self._program_bytes.decode("utf8")) + return "jq.compile({!r})".format(self.program_string) cdef class _ProgramWithInput(object): |
