Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from volatile to tempfile. #143

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bowler/tests/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from io import StringIO

import click
import volatile
import tempfile
from fissix import pygram, pytree
from fissix.pgen2.driver import Driver

Expand Down Expand Up @@ -96,7 +96,7 @@ def default_query_func(files):
if query_func is None:
query_func = default_query_func

with volatile.file(mode="w", suffix=".py") as f:
with tempfile.NamedTemporaryFile(mode="w", suffix=".py", delete=False) as f:
# TODO: I'm almost certain this will not work on Windows, since
# NamedTemporaryFile has it already open for writing. Consider
# using mktemp directly?
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ attrs
click
fissix
moreorless>=0.2.0
volatile