def main(): # list = [7, 4, 3, None, None, 6, 19] list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] original = maketree(list) cloned = deepcopy(original) solution = Solution() target = original.left.left print('target id = {}, val = {}'.format(id(target), target.val)) result = solution.getTargetCopy(original, cloned, target) print('result id = {}, val = {}'.format(id(result), result.val))
def gettree(self): return util.maketree(self.wcpath, ignore = [r'(^(\{arch\}$|,,|\.hg|\.hgtags|\.hgignore|\.git|_darcs|\.arch-ids$|\.arch-inventory$|\+\+)|/\.arch-ids/)'])
def updateimportfiles(self): if self.verb: print "Scanning upstream tree..." self.importfiles = util.maketree(self.importdir)
def gettree(self): return util.maketree( self.wcpath, ignore=[ r'(^(\{arch\}$|,,|\.hg|\.hgtags|\.hgignore|\.git|_darcs|\.arch-ids$|\.arch-inventory$|\+\+)|/\.arch-ids/)' ])