summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2020-04-18 18:52:32 +0100
committerMichael Williamson <mike@zwobble.org>2020-04-18 18:52:32 +0100
commit00d2f06345f88b30d43343b1f5e6c4d6659edce1 (patch)
tree16fa9cc1b276787df42f26f9da5a300111f6cd4f
parent79c418d19c985e6c1882556f48c80a236ff56d8d (diff)
Add leading underscores to private module members
-rw-r--r--jq.pyx8
1 files changed, 4 insertions, 4 deletions
diff --git a/jq.pyx b/jq.pyx
index cad78e5..520e21c 100644
--- a/jq.pyx
+++ b/jq.pyx
@@ -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