diff options
| author | django-bot <ops@djangoproject.com> | 2025-07-22 20:41:41 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 69a93a88edb56ba47f624dac7a21aacc47ea474f (patch) | |
| tree | f57507a4435d032493cae40e06ecb254790b67b2 /django/conf | |
| parent | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (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/conf')
| -rw-r--r-- | django/conf/__init__.py | 6 | ||||
| -rw-r--r-- | django/conf/global_settings.py | 22 | ||||
| -rw-r--r-- | django/conf/locale/__init__.py | 7 |
3 files changed, 20 insertions, 15 deletions
diff --git a/django/conf/__init__.py b/django/conf/__init__.py index 6b5f044e34..c7ae36aba0 100644 --- a/django/conf/__init__.py +++ b/django/conf/__init__.py @@ -77,7 +77,8 @@ class LazySettings(LazyObject): val = getattr(_wrapped, name) # Special case some settings which require further modification. - # This is done here for performance reasons so the modified value is cached. + # This is done here for performance reasons so the modified value is + # cached. if name in {"MEDIA_URL", "STATIC_URL"} and val is not None: val = self._add_script_prefix(val) elif name == "SECRET_KEY" and not val: @@ -149,7 +150,8 @@ class LazySettings(LazyObject): class Settings: def __init__(self, settings_module): - # update this dict from global settings (but only for ALL_CAPS settings) + # update this dict from global settings (but only for ALL_CAPS + # settings) for setting in dir(global_settings): if setting.isupper(): setattr(self, setting, getattr(global_settings, setting)) diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py index 25ac49becf..ffbe5d3980 100644 --- a/django/conf/global_settings.py +++ b/django/conf/global_settings.py @@ -317,9 +317,9 @@ DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000 # before a SuspiciousOperation (TooManyFilesSent) is raised. DATA_UPLOAD_MAX_NUMBER_FILES = 100 -# Directory in which upload streamed files will be temporarily saved. A value of -# `None` will make Django use the operating system's default temporary directory -# (i.e. "/tmp" on *nix systems). +# Directory in which upload streamed files will be temporarily saved. A value +# of `None` will make Django use the operating system's default temporary +# directory (i.e. "/tmp" on *nix systems). FILE_UPLOAD_TEMP_DIR = None # The numeric mode to set newly-uploaded files to. The value should be a mode @@ -327,9 +327,9 @@ FILE_UPLOAD_TEMP_DIR = None # https://docs.python.org/library/os.html#files-and-directories. FILE_UPLOAD_PERMISSIONS = 0o644 -# The numeric mode to assign to newly-created directories, when uploading files. -# The value should be a mode as you'd pass to os.chmod; -# see https://docs.python.org/library/os.html#files-and-directories. +# The numeric mode to assign to newly-created directories, when uploading +# files. The value should be a mode as you'd pass to os.chmod; see +# https://docs.python.org/library/os.html#files-and-directories. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None # Python module path where user will place custom format definition. @@ -342,7 +342,8 @@ FORMAT_MODULE_PATH = None # https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = "N j, Y" -# Default formatting for datetime objects. See all available format strings here: +# Default formatting for datetime objects. See all available format strings +# here: # https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATETIME_FORMAT = "N j, Y, P" @@ -350,8 +351,8 @@ DATETIME_FORMAT = "N j, Y, P" # https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date TIME_FORMAT = "P" -# Default formatting for date objects when only the year and month are relevant. -# See all available format strings here: +# Default formatting for date objects when only the year and month are +# relevant. See all available format strings here: # https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date YEAR_MONTH_FORMAT = "F Y" @@ -360,7 +361,8 @@ YEAR_MONTH_FORMAT = "F Y" # https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date MONTH_DAY_FORMAT = "F j" -# Default short formatting for date objects. See all available format strings here: +# Default short formatting for date objects. See all available format strings +# here: # https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date SHORT_DATE_FORMAT = "m/d/Y" diff --git a/django/conf/locale/__init__.py b/django/conf/locale/__init__.py index 6ac7bd3bdb..04962042b3 100644 --- a/django/conf/locale/__init__.py +++ b/django/conf/locale/__init__.py @@ -1,10 +1,11 @@ """ -LANG_INFO is a dictionary structure to provide meta information about languages. +LANG_INFO is a dictionary structure to provide meta information about +languages. About name_local: capitalize it as if your language name was appearing inside a sentence in your language. -The 'fallback' key can be used to specify a special fallback logic which doesn't -follow the traditional 'fr-ca' -> 'fr' fallback logic. +The 'fallback' key can be used to specify a special fallback logic which +doesn't follow the traditional 'fr-ca' -> 'fr' fallback logic. """ LANG_INFO = { |
