- OldMask = os.umask(0022)
- # nothing else does the fsync stuff, so why do it here?
- fn = os.path.join(prefix,File).encode('ascii', 'ignore')
- fntmp = os.path.join(prefix,File + '.tmp').encode('ascii', 'ignore')
- try:
- posix.remove(fntmp)
- except:
- pass