Skip to content

Commit

Permalink
Drop the fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jan 22, 2025
1 parent bb6f408 commit c597102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Next version
hopefully improves compatibility on macOS.
- Introduced a ``--no-parallel`` argument to ``process_imagefields``.
- Added Django 5.2a1.
- Dropped the Python 2 fallback from the code. We don't support Python 2
anymore.


0.21 (2024-12-09)
Expand Down
2 changes: 0 additions & 2 deletions imagefield/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import io
import logging
import os
import re
import warnings
from collections import namedtuple
from random import randint
Expand Down Expand Up @@ -186,7 +185,6 @@ def _process_context(self, processors):
spec = (
"|".join(str(p) for p in context.processors) + "|" + str(context.ppoi)
)
spec = re.sub(r"\bu('|\")", "\\1", spec) # Strip u"" prefixes on PY2
p2 = hashdigest(spec)
context.name = f"{base.path}/{base.basename}{p2[:12]}{context.extension}"
context.seal()
Expand Down

0 comments on commit c597102

Please sign in to comment.