mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #32355 -- Dropped support for Python 3.6 and 3.7
This commit is contained in:
committed by
Carlton Gibson
parent
9c6ba87692
commit
ec0ff40631
@@ -1,11 +1,9 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.utils.version import PY37
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
def add_arguments(self, parser):
|
||||
kwargs = {'required': True} if PY37 else {}
|
||||
subparsers = parser.add_subparsers(dest='subcommand', **kwargs)
|
||||
subparsers = parser.add_subparsers(dest='subcommand', required=True)
|
||||
parser_foo = subparsers.add_parser('foo')
|
||||
parser_foo.add_argument('--bar')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user