diff options
| author | Michael Williamson <mike@zwobble.org> | 2020-04-18 18:52:32 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2020-04-18 18:52:32 +0100 |
| commit | 00d2f06345f88b30d43343b1f5e6c4d6659edce1 (patch) | |
| tree | 16fa9cc1b276787df42f26f9da5a300111f6cd4f | |
| parent | 79c418d19c985e6c1882556f48c80a236ff56d8d (diff) | |
Add leading underscores to private module members
| -rw-r--r-- | jq.pyx | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -71,7 +71,7 @@ cdef jq_state* _compile(object program_bytes) except NULL: error_store = _ErrorStore.__new__(_ErrorStore) error_store.clear() - jq_set_error_cb(jq, store_error, <void*>error_store) + jq_set_error_cb(jq, _store_error, <void*>error_store) compiled = jq_compile(jq, program_bytes) @@ -88,7 +88,7 @@ cdef jq_state* _compile(object program_bytes) except NULL: return jq -cdef void store_error(void* store_ptr, jv error): +cdef void _store_error(void* store_ptr, jv error): # TODO: handle errors not of JV_KIND_STRING cdef _ErrorStore store = <_ErrorStore>store_ptr if jv_get_kind(error) == JV_KIND_STRING: @@ -113,10 +113,10 @@ cdef class _ErrorStore(object): self._errors = [] -class EmptyValue(object): +class _EmptyValue(object): pass -_NO_VALUE = EmptyValue() +_NO_VALUE = _EmptyValue() cdef class _Program(object): cdef object _program_bytes |
