Skip to content

Commit

Permalink
Switch from volatile to tempfile.
Browse files Browse the repository at this point in the history
The volatile project is dead.
Implementing similar functionality with stdlib.
  • Loading branch information
qwetwe authored and Ivan Alekseev committed Dec 30, 2021
1 parent 9be47da commit d24f5e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
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

0 comments on commit d24f5e5

Please sign in to comment.