Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-36876: [c-analyzer tool] Additional CLI updates for "capi" command.#23929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ericsnowcurrently merged 9 commits intopython:masterfromericsnowcurrently:show-capi
Dec 25, 2020
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
format: brief -> table
  • Loading branch information
@ericsnowcurrently
ericsnowcurrently committedDec 25, 2020
commit112dcae419c21c7267d444453ab898393f9329f5
4 changes: 2 additions & 2 deletionsTools/c-analyzer/cpython/__main__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -249,7 +249,7 @@ def process_kinds(args, *, argv=None):
parser.add_argument('--group-by', dest='groupby',
choices=['level', 'kind'])

parser.add_argument('--format', default='brief')
parser.add_argument('--format', default='table')
parser.add_argument('--summary', dest='format',
action='store_const', const='summary')
def process_format(args, *, argv=None):
Expand DownExpand Up@@ -278,7 +278,7 @@ def cmd_capi(filenames=None, *,
levels=None,
kinds=None,
groupby='kind',
format='brief',
format='table',
track_progress=None,
verbosity=VERBOSITY,
**kwargs
Expand Down
4 changes: 2 additions & 2 deletionsTools/c-analyzer/cpython/_capi.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -359,7 +359,7 @@ def sortkey(item):

def resolve_format(format):
if not format:
return 'brief'
return 'table'
elif isinstance(format, str) and format in _FORMATS:
return format
else:
Expand DownExpand Up@@ -520,7 +520,7 @@ def render_summary(items, *, groupby='kind', sort=None, verbose=False):


_FORMATS = {
'brief': render_table,
'table': render_table,
'full': render_full,
'summary': render_summary,
}

[8]ページ先頭

©2009-2025 Movatter.jp