summaryrefslogtreecommitdiff
path: root/django/core/files/uploadedfile.py
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2025-07-22 20:41:41 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 20:17:55 -0300
commit69a93a88edb56ba47f624dac7a21aacc47ea474f (patch)
treef57507a4435d032493cae40e06ecb254790b67b2 /django/core/files/uploadedfile.py
parent55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff)
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'django/core/files/uploadedfile.py')
-rw-r--r--django/core/files/uploadedfile.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/django/core/files/uploadedfile.py b/django/core/files/uploadedfile.py
index efbfcac4c8..1d006ede4f 100644
--- a/django/core/files/uploadedfile.py
+++ b/django/core/files/uploadedfile.py
@@ -54,7 +54,8 @@ class UploadedFile(File):
# Just use the basename of the file -- anything else is dangerous.
name = os.path.basename(name)
- # File names longer than 255 characters can cause problems on older OSes.
+ # File names longer than 255 characters can cause problems on older
+ # OSes.
if len(name) > 255:
name, ext = os.path.splitext(name)
ext = ext[:255]
@@ -126,7 +127,8 @@ class InMemoryUploadedFile(UploadedFile):
class SimpleUploadedFile(InMemoryUploadedFile):
"""
- A simple representation of a file, which just has content, size, and a name.
+ A simple representation of a file, which just has content, size, and a
+ name.
"""
def __init__(self, name, content, content_type="text/plain"):