Commits

Anonymous committed 85779ce

removed deprecated prompt methods

Comments (0)

Files changed (1)

flaskext/script.py

 import string
 import getpass
 import inspect
-import warnings
 
 import argparse
 
 
         raise NotImplementedError
 
-    def prompt(self, name, default=None):
-        warnings.warn_explicit(
-            "Command.prompt is deprecated, use prompt() function instead")
-
-        prompt(name, default)
-
-    def prompt_pass(self, name, default=None):
-        warnings.warn_explicit(
-            "Command.prompt_pass is deprecated, use prompt_pass() function instead")
-
-        prompt_pass(name, default)
-
-    def prompt_bool(self, name, default=False):
-        warnings.warn_explicit(
-            "Command.prompt_bool is deprecated, use prompt_bool() function instead")
-
-        prompt_bool(name, default)
-
-    def prompt_choices(self, name, choices, default=None):
-        warnings.warn_explicit(
-            "Command.choices is deprecated, use prompt_choices() function instead")
-
-        prompt_choices(name, choices, default)
 
 class Shell(Command):
 
 
         rv = []
 
-        for name, command in self._commands.iteritems():
+        for name, command in sorted(self._commands.iteritems()):
             usage = name
             description = command.description or ''
             usage = format % (name, description)