mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-28 07:03:17 +08:00
Another review suggestion
This commit is contained in:
1 parent
020d7a9acb
commit
0dec1a4003
1 file changed
+1
-1
+1
-1
@@ -29,7 +29,7 @@ def clean_parso_cache():
|
|||||||
"""
|
"""
|
||||||
old = cache._default_cache_path
|
old = cache._default_cache_path
|
||||||
tmp = tempfile.mkdtemp(prefix='parso-test-')
|
tmp = tempfile.mkdtemp(prefix='parso-test-')
|
||||||
cache._default_cache_path = Path(str(tmp))
|
cache._default_cache_path = Path(tmp)
|
||||||
yield
|
yield
|
||||||
cache._default_cache_path = old
|
cache._default_cache_path = old
|
||||||
shutil.rmtree(tmp)
|
shutil.rmtree(tmp)
|
||||||
|
|||||||
Reference in new issue
Block a user