summaryrefslogtreecommitdiff
path: root/lib/command_py.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-10-04 13:44:19 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2022-10-06 15:34:32 +0200
commit3df576449993ad88b70b6668931d875557cf5139 (patch)
tree2b650465ba26e13fc0aa53622c2984907572fbe2 /lib/command_py.c
parentba31dc303a2db9d9ce0cf8f8d08697fc46461320 (diff)
lib: add CMD_ATTR_NOSH
To propagate into .xref so extract.pl can be handled there. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command_py.c')
-rw-r--r--lib/command_py.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/command_py.c b/lib/command_py.c
index ff7b2d18a5..cce9542e30 100644
--- a/lib/command_py.c
+++ b/lib/command_py.c
@@ -355,7 +355,8 @@ PyMODINIT_FUNC command_py_init(void)
if (PyModule_AddIntMacro(pymod, CMD_ATTR_YANG)
|| PyModule_AddIntMacro(pymod, CMD_ATTR_HIDDEN)
- || PyModule_AddIntMacro(pymod, CMD_ATTR_DEPRECATED))
+ || PyModule_AddIntMacro(pymod, CMD_ATTR_DEPRECATED)
+ || PyModule_AddIntMacro(pymod, CMD_ATTR_NOSH))
initret(NULL);
Py_INCREF(&typeobj_graph_node);