Skip to content

Commit

Permalink
Compatibility with Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
knifecake committed Dec 19, 2024
1 parent 218f29d commit 6346ff7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions anchor/services/transformers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,4 @@ def process(self, file, format: str):
raise NotImplementedError()

def _get_temporary_file(self, format: str):
return tempfile.NamedTemporaryFile(
suffix=f".{format}", mode="w+b", delete_on_close=True, delete=True
)
return tempfile.NamedTemporaryFile(suffix=f".{format}", mode="w+b", delete=True)
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ classifiers = [
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
Expand Down

0 comments on commit 6346ff7

Please sign in to comment.