Example #1
0
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))
Example #2
0
 def gettree(self):
     return util.maketree(self.wcpath,
                          ignore = [r'(^(\{arch\}$|,,|\.hg|\.hgtags|\.hgignore|\.git|_darcs|\.arch-ids$|\.arch-inventory$|\+\+)|/\.arch-ids/)'])
Example #3
0
 def updateimportfiles(self):
     if self.verb:
         print "Scanning upstream tree..."
     self.importfiles = util.maketree(self.importdir)
Example #4
0
 def updateimportfiles(self):
     if self.verb:
         print "Scanning upstream tree..."
     self.importfiles = util.maketree(self.importdir)
Example #5
0
 def gettree(self):
     return util.maketree(
         self.wcpath,
         ignore=[
             r'(^(\{arch\}$|,,|\.hg|\.hgtags|\.hgignore|\.git|_darcs|\.arch-ids$|\.arch-inventory$|\+\+)|/\.arch-ids/)'
         ])