summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
authorDavid Smith <smithdc@gmail.com>2023-02-01 07:13:39 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-01 11:04:38 +0100
commit097e3a70c1481ee7b042b2edd91b2be86fb7b5b6 (patch)
tree7042be9ee3aabda10ecfa8923a113388b81f34a8 /django/forms/widgets.py
parent8c660fb59239828583f17cdede3b64f208b8752c (diff)
Refs #33476 -- Applied Black's 2023 stable style.
Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index a53569c5a3..842b73e95c 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -482,7 +482,6 @@ class ClearableFileInput(FileInput):
if not self.is_required and CheckboxInput().value_from_datadict(
data, files, self.clear_checkbox_name(name)
):
-
if upload:
# If the user contradicts themselves (uploads a new file AND
# checks the "clear" checkbox), we return a unique marker