def vcdiff(self, dictionary, target): return sh.vcdiff( 'delta', '-dictionary', dictionary.name, '-target', target.name).stdout
def un_vcdiff(self, dictionary, patch): fd = self.write(patch) content = sh.vcdiff( 'patch', '-dictionary', dictionary.name, '-delta', fd.name).stdout os.remove(fd.name) return content