From ac666b4bb258b4d8046feb5077037ab3dca4a9a7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 17:43:40 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- avatar/models.py | 4 ++-- test_proj/manage.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/avatar/models.py b/avatar/models.py index 8c5d38f..800ee10 100644 --- a/avatar/models.py +++ b/avatar/models.py @@ -42,11 +42,11 @@ def avatar_path_handler( # Filename already stored in database filename = instance.avatar.name if ext: - (root, oldext) = os.path.splitext(filename) + root, oldext = os.path.splitext(filename) filename = root + "." + ext.lower() else: # File doesn't exist yet - (root, oldext) = os.path.splitext(filename) + root, oldext = os.path.splitext(filename) if settings.AVATAR_HASH_FILENAMES: if settings.AVATAR_RANDOMIZE_HASHES: root = binascii.hexlify(os.urandom(16)).decode("ascii") diff --git a/test_proj/manage.py b/test_proj/manage.py index 1844990..f876487 100755 --- a/test_proj/manage.py +++ b/test_proj/manage.py @@ -1,5 +1,6 @@ #!/usr/bin/env python """Django's command-line utility for administrative tasks.""" + import os import sys