Kaydet (Commit) 6664bb87 authored tarafından Guido van Rossum's avatar Guido van Rossum

Sjoerd Mullender: cmp.py is obsolete...

üst eca47847
......@@ -35,11 +35,8 @@ class _BkFile:
self.__file.close()
if self.__backup is None:
return
import cmp
# don't use cmp.cmp because of NFS bugs :-( and
# anyway, the stat mtime values differ so do_cmp will
# most likely be called anyway
if cmp.do_cmp(self.__backup, self.__filename):
import filecmp
if filecmp.cmp(self.__backup, self.__filename, shallow = 0):
import os
os.unlink(self.__filename)
os.rename(self.__backup, self.__filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment