Skip to content

Commit

Permalink
twisted#12065 Update twisted.python._shellcomp.ZshArgumentsGenerator …
Browse files Browse the repository at this point in the history
…for Python 3.13. (twisted#12066)
  • Loading branch information
adiroiban committed Mar 4, 2024
2 parents f533ffb + 5bd46c7 commit 63df84e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/twisted/newsfragments/12065.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
twisted.python._shellcomp.ZshArgumentsGenerator was updated for Python 3.13.
4 changes: 3 additions & 1 deletion src/twisted/python/_shellcomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,9 @@ def getDescription(self, longname):
obj = getattr(self.options, "opt_%s" % longMangled, None)
if obj is not None:
descr = descrFromDoc(obj)
if descr is not None:
# On Python3.13 we have an empty string instead of None,
# for missing description.
if descr:
return descr

return longname # we really ought to have a good description to use
Expand Down

0 comments on commit 63df84e

Please sign in to comment.