From 1a3bca2b847d97542f61884d09c7fd3fcad8486d Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Sat, 27 Oct 2007 16:09:52 +0000 Subject: [PATCH] Wrapped some long lines and orginized imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6622 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management/commands/startapp.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/django/core/management/commands/startapp.py b/django/core/management/commands/startapp.py index 20ab397da1..a3d517dd7a 100644 --- a/django/core/management/commands/startapp.py +++ b/django/core/management/commands/startapp.py @@ -1,8 +1,10 @@ -from django.core.management.base import copy_helper, CommandError, LabelCommand import os +from django.core.management.base import copy_helper, CommandError, LabelCommand + class Command(LabelCommand): - help = "Creates a Django app directory structure for the given app name in the current directory." + help = ("Creates a Django app directory structure for the given app name" + " in the current directory.") args = "[appname]" label = 'application name' @@ -19,11 +21,13 @@ class Command(LabelCommand): # current directory if no directory was passed). project_name = os.path.basename(directory) if app_name == project_name: - raise CommandError("You cannot create an app with the same name (%r) as your project." % app_name) + raise CommandError("You cannot create an app with the same name" + " (%r) as your project." % app_name) copy_helper(self.style, 'app', app_name, directory, project_name) class ProjectCommand(Command): - help = "Creates a Django app directory structure for the given app name in this project's directory." + help = ("Creates a Django app directory structure for the given app name" + " in this project's directory.") def __init__(self, project_directory): super(ProjectCommand, self).__init__()