##// END OF EJS Templates
util: state docstring of rename more precisely
Adrian Buehlmann -
r9548:7732606b default
parent child Browse files
Show More
@@ -400,7 +400,7 b' def lexists(filename):'
400 return True
400 return True
401
401
402 def rename(src, dst):
402 def rename(src, dst):
403 """forcibly rename a file"""
403 '''atomically rename file src to dst, replacing dst if it exists'''
404 try:
404 try:
405 os.rename(src, dst)
405 os.rename(src, dst)
406 except OSError, err: # FIXME: check err (EEXIST ?)
406 except OSError, err: # FIXME: check err (EEXIST ?)
General Comments 0
You need to be logged in to leave comments. Login now