Skip to content

Commit 03c655b

Browse files
committed
splitting
1 parent c38f929 commit 03c655b

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

Lib/asyncio/__main__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,7 @@ def interrupt(self) -> None:
154154
)
155155
ps.add_argument("pid", type=int, help="Process ID to inspect")
156156
formats = [fmt.value for fmt in asyncio.tools.TaskTableOutputFormat]
157-
big_secret = asyncio.tools.TaskTableOutputFormat.bsv.value
158-
formats_to_show = [
159-
fmt for fmt in formats if fmt != big_secret
160-
]
161-
formats_to_show_str = f"{{{','.join(formats_to_show)}}}"
162-
ps.add_argument("--format", choices=formats, default="table",
163-
metavar=formats_to_show_str)
157+
ps.add_argument("--format", choices=formats, default="table")
164158
pstree = subparsers.add_parser(
165159
"pstree", help="Display a tree of all pending tasks in a process"
166160
)

Lib/asyncio/tools.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,6 @@ def _get_awaited_by_tasks(pid: int) -> list:
237237
class TaskTableOutputFormat(StrEnum):
238238
table = auto()
239239
csv = auto()
240-
bsv = auto()
241-
# As per the words of the asyncio 🍌SV spec lead:
242-
# > 🍌SV is not just a format. It’s a lifestyle. A philosophy.
243-
# https://www.youtube.com/watch?v=RrsVi1P6n0w
244240

245241

246242
def display_awaited_by_tasks_table(
@@ -273,8 +269,6 @@ def _display_awaited_by_tasks_csv(table, format: TaskTableOutputFormat) -> None:
273269
'awaiter chain', 'awaiter name', 'awaiter id')
274270
if format == TaskTableOutputFormat.csv:
275271
delimiter = ','
276-
elif format == TaskTableOutputFormat.bsv:
277-
delimiter = '\N{BANANA}'
278272
else:
279273
raise ValueError(f"Unknown output format: {format}")
280274
csv_writer = csv.writer(sys.stdout, delimiter=delimiter)

0 commit comments

Comments
 (0)