File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 31
31
# setting is True
32
32
import argparse
33
33
import cmd
34
- import collections
35
34
import glob
36
35
import inspect
37
36
import os
@@ -351,7 +350,6 @@ class Cmd(cmd.Cmd):
351
350
timing = False # Prints elapsed time for each command
352
351
353
352
# To make an attribute settable with the "do_set" command, add it to this ...
354
- # This starts out as a dictionary but gets converted to an OrderedDict sorted alphabetically by key
355
353
settable = {'colors' : 'Allow colorized output (valid values: Terminal, Always, Never)' ,
356
354
'continuation_prompt' : 'On 2nd+ line of input' ,
357
355
'debug' : 'Show full error stack on error' ,
@@ -562,13 +560,10 @@ def visible_prompt(self) -> str:
562
560
return utils .strip_ansi (self .prompt )
563
561
564
562
def _finalize_app_parameters (self ) -> None :
565
- """Finalize the shortcuts and settable parameters. """
563
+ """Finalize the shortcuts"""
566
564
# noinspection PyUnresolvedReferences
567
565
self .shortcuts = sorted (self .shortcuts .items (), reverse = True )
568
566
569
- # Make sure settable parameters are sorted alphabetically by key
570
- self .settable = collections .OrderedDict (sorted (self .settable .items (), key = lambda t : t [0 ]))
571
-
572
567
def decolorized_write (self , fileobj : IO , msg : str ) -> None :
573
568
"""Write a string to a fileobject, stripping ANSI escape sequences if necessary
574
569
You can’t perform that action at this time.
0 commit comments