diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-03-27 14:58:02 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-03-27 14:58:02 +0000 |
| commit | 30236682bfe220c79c4fdc0bea66f2f0e06f1fd4 (patch) | |
| tree | 744401d5d3c85c1a938f1c38df188a80e85496b7 /jq.pyx | |
| parent | 72f52a18069c2a04b9cb8bbe6f5185fe4c384be1 (diff) | |
Rename raw_output to text_output
Diffstat (limited to 'jq.pyx')
| -rw-r--r-- | jq.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -112,7 +112,7 @@ cdef class _Program(object): def __dealloc__(self): jq_teardown(&self._jq) - def transform(self, value=_NO_VALUE, text=_NO_VALUE, raw_output=False, multiple_output=False): + def transform(self, value=_NO_VALUE, text=_NO_VALUE, text_output=False, multiple_output=False): if (value is _NO_VALUE) == (text is _NO_VALUE): raise ValueError("Either the value or text argument should be set") string_input = text if text is not _NO_VALUE else json.dumps(value) @@ -126,7 +126,7 @@ cdef class _Program(object): raise ValueError(self._error_store.error_string()) result_strings = map(lambda s: s.decode("utf8"), result_bytes) - if raw_output: + if text_output: return "\n".join(result_strings) elif multiple_output: return [json.loads(s) for s in result_strings] |
