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

gh-106970: Fix Argument Clinic 'destination <name> clear' command#106972

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
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
Fix two bugs in 'destination <name> clear' command:
1. The text attribute of the allocator is called 'text', not '_text'2. Return after processing the 'clear' command
  • Loading branch information
@erlend-aasland
erlend-aasland committedJul 21, 2023
commit04315a79022563df6799a66190e81e24461ca420
3 changes: 2 additions & 1 deletionTools/clinic/clinic.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1983,7 +1983,7 @@ def __getitem__(self, i):

def clear(self):
for ta in self._array:
ta._text.clear()
ta.text.clear()

def dump(self):
texts = [ta.output() for ta in self._array]
Expand DownExpand Up@@ -4493,6 +4493,7 @@ def directive_destination(

if command == 'clear':
self.clinic.get_destination(name).clear()
return
fail("unknown destination command", repr(command))


Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp