mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
merge with trunk
This commit is contained in:
@@ -366,6 +366,7 @@ def force_decode(string, encoding):
|
||||
def movefile(source, dest):
|
||||
# move a file, removing the destination if it exists
|
||||
if os.path.exists(dest):
|
||||
try:
|
||||
os.unlink(dest)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user