#16695: a line which is never executed
---------------------------+-------------------------------
 Reporter:  anonymous      |          Owner:  nobody
     Type:  Uncategorized  |         Status:  new
Milestone:                 |      Component:  Uncategorized
  Version:  1.3            |       Severity:  Normal
 Keywords:  management     |   Triage Stage:  Unreviewed
Has patch:  0              |  Easy pickings:  1
    UI/UX:  0              |
---------------------------+-------------------------------
 {{{
     def fetch_command(self, subcommand):
         """
         Tries to fetch the given subcommand, printing a message with the
         appropriate command called from the command line (usually
         "django-admin.py" or "manage.py") if it can't be found.
         """
         try:

              app_name = get_commands()[subcommand]

         except KeyError:
             sys.stderr.write("Unknown command: %r\nType '%s help' for
 usage.\n" % \
                 (subcommand, self.prog_name))
             sys.exit(1)
         if isinstance(app_name, BaseCommand):
             # If the command is already loaded, use it directly.
             klass = app_name
         else:
             klass = load_command_class(app_name, subcommand)
         return klass


 }}}
 {{{isinstance(app_name, BaseCommand) }}}this line will always be false

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16695>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to