diff --git a/django/core/management/commands/listurls.py b/django/core/management/commands/listurls.py index 403b4c9b93..041dc38696 100644 --- a/django/core/management/commands/listurls.py +++ b/django/core/management/commands/listurls.py @@ -69,11 +69,7 @@ class Command(BaseCommand): ) def handle(self, *args, **options): - # Make sure the prefixes are a list prefixes = options["prefixes"] - if prefixes: - prefixes = prefixes if isinstance(prefixes, list) else [prefixes] - url_patterns = get_url_patterns(prefixes=prefixes) if not url_patterns: