Skip to content

Commit

Permalink
Clean up (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur authored Sep 11, 2024
1 parent 83b98a4 commit 7610b88
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions fakepy/django_storage/base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
from abc import abstractmethod
from pathlib import Path
from tempfile import NamedTemporaryFile
from typing import Optional, Union

from django.core.files.base import ContentFile
Expand Down Expand Up @@ -79,16 +78,6 @@ def generate_filename(

filename = f"{basename}.{extension}"

# if basename:
# filename = f"{basename}.{extension}"
# else:
# temp_file = NamedTemporaryFile(
# prefix=prefix,
# suffix=f".{extension}",
# delete=False,
# )
# filename = Path(temp_file.name).name

return os.path.join(dir_path, filename)

def write_text(
Expand Down

0 comments on commit 7610b88

Please sign in to comment.