Skip to content

Commit 338e5a5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 40c310f commit 338e5a5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

avatar/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ def avatar_path_handler(
4242
# Filename already stored in database
4343
filename = instance.avatar.name
4444
if ext:
45-
(root, oldext) = os.path.splitext(filename)
45+
root, oldext = os.path.splitext(filename)
4646
filename = root + "." + ext.lower()
4747
else:
4848
# File doesn't exist yet
49-
(root, oldext) = os.path.splitext(filename)
49+
root, oldext = os.path.splitext(filename)
5050
if settings.AVATAR_HASH_FILENAMES:
5151
if settings.AVATAR_RANDOMIZE_HASHES:
5252
root = binascii.hexlify(os.urandom(16)).decode("ascii")

test_proj/manage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Django's command-line utility for administrative tasks."""
3+
34
import os
45
import sys
56

0 commit comments

Comments
 (0)