diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-04 08:08:27 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-07 20:37:05 +0100 |
| commit | 7119f40c9881666b6f9b5cf7df09ee1d21cc8344 (patch) | |
| tree | fa50869f5614295f462d9bf77fec59365c621609 /django/core/management/commands/loaddata.py | |
| parent | 9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff) | |
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'django/core/management/commands/loaddata.py')
| -rw-r--r-- | django/core/management/commands/loaddata.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/django/core/management/commands/loaddata.py b/django/core/management/commands/loaddata.py index 38a2818d5c..ac97f13161 100644 --- a/django/core/management/commands/loaddata.py +++ b/django/core/management/commands/loaddata.py @@ -55,7 +55,10 @@ class Command(BaseCommand): parser.add_argument( "--database", default=DEFAULT_DB_ALIAS, - help='Nominates a specific database to load fixtures into. Defaults to the "default" database.', + help=( + "Nominates a specific database to load fixtures into. Defaults to the " + '"default" database.' + ), ) parser.add_argument( "--app", @@ -75,7 +78,10 @@ class Command(BaseCommand): "--exclude", action="append", default=[], - help="An app_label or app_label.ModelName to exclude. Can be used multiple times.", + help=( + "An app_label or app_label.ModelName to exclude. Can be used multiple " + "times." + ), ) parser.add_argument( "--format", @@ -105,7 +111,8 @@ class Command(BaseCommand): @cached_property def compression_formats(self): """A dict mapping format names to (open function, mode arg) tuples.""" - # Forcing binary mode may be revisited after dropping Python 2 support (see #22399) + # Forcing binary mode may be revisited after dropping Python 2 support + # (see #22399). compression_formats = { None: (open, "rb"), "gz": (gzip.GzipFile, "rb"), |
