1
0
mirror of https://github.com/django/django.git synced 2025-03-31 11:37:06 +00:00

Removed unused RunInTmpDirMixin.rmfile().

Unused since bb7bb379e8cd91a91336946829519d64e919a1d2.
This commit is contained in:
Jon Dufresne 2019-02-05 04:44:32 -08:00 committed by Mariusz Felisiak
parent 0367bc6d04
commit 680cc417d3

View File

@ -59,7 +59,3 @@ class RunInTmpDirMixin:
if os.path.commonprefix([self.test_dir, os.path.abspath(dname)]) != self.test_dir:
return
shutil.rmtree(dname)
def rmfile(self, filepath):
if os.path.exists(filepath):
os.remove(filepath)