Skip to content

Commit fc1489d

Browse files
committed
Make private
1 parent b5952c8 commit fc1489d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sphinxarg/ext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def render_list(l, markdown_help, settings=None):
8686
return all_children
8787

8888

89-
def is_suppressed(item):
89+
def _is_suppressed(item):
9090
"""Return whether item should not be printed."""
9191
if item is None:
9292
return True
@@ -159,7 +159,7 @@ def print_action_groups(
159159
)
160160
if 'help' in entry:
161161
arg.append(entry['help'])
162-
if not is_suppressed(entry['default']):
162+
if not _is_suppressed(entry['default']):
163163
# Put the default value in a literal block,
164164
# but escape backticks already in the string
165165
default_str = str(entry['default']).replace('`', r'\`')
@@ -419,7 +419,7 @@ def _format_optional_arguments(self, parser_info):
419419
opt_items = []
420420
for name in opt['name']:
421421
option_declaration = [nodes.option_string(text=name)]
422-
if not is_suppressed(opt['default']):
422+
if not _is_suppressed(opt['default']):
423423
option_declaration += nodes.option_argument(
424424
'', text='=' + str(opt['default'])
425425
)

0 commit comments

Comments
 (0)