mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	Removed unneeded use of len() in a couple expressions.
				
					
				
			git-svn-id: http://code.djangoproject.com/svn/django/trunk@6483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -161,7 +161,7 @@ class NoArgsCommand(BaseCommand): | ||||
|     args = '' | ||||
|  | ||||
|     def handle(self, *args, **options): | ||||
|         if len(args) != 0: | ||||
|         if args: | ||||
|             raise CommandError("Command doesn't accept any arguments") | ||||
|         return self.handle_noargs(**options) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user