mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
69d348e532
commit
0bc7e0d4b9
@ -111,9 +111,9 @@ def initialize_calibre():
|
||||
orig_remove_temp_dir = util._remove_temp_dir
|
||||
|
||||
def safe_rmtree(rmtree):
|
||||
def r(tdir):
|
||||
def r(tdir, **kw):
|
||||
if tdir and os.path.exists(tdir):
|
||||
rmtree(tdir)
|
||||
rmtree(tdir, **kw)
|
||||
return r
|
||||
|
||||
def safe_remove_temp_dir(rmtree, tdir):
|
||||
|
Loading…
x
Reference in New Issue
Block a user