Improved the display of the 'Target Versions' list of the 'Black' configuration dialog. eric7

Tue, 20 Sep 2022 11:40:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 20 Sep 2022 11:40:04 +0200
branch
eric7
changeset 9341
3dc887a49403
parent 9340
973ac7659662
child 9342
07a037ce923a

Improved the display of the 'Target Versions' list of the 'Black' configuration dialog.

src/eric7/CodeFormatting/BlackConfigurationDialog.py file | annotate | diff | comparison | revisions
--- a/src/eric7/CodeFormatting/BlackConfigurationDialog.py	Tue Sep 20 11:28:20 2022 +0200
+++ b/src/eric7/CodeFormatting/BlackConfigurationDialog.py	Tue Sep 20 11:40:04 2022 +0200
@@ -109,7 +109,7 @@
             for t in dir(black.TargetVersion)
             if t.startswith("PY")
         ]
-        for target in sorted(targets):
+        for target in sorted(targets, reverse=True):
             itm = QListWidgetItem(
                 "Python {0}.{1}".format(target[0], target[1]), self.targetVersionsList
             )

eric ide

mercurial