@@ -53,8 +53,8 @@ def phase2(dd): # Distinguish files, directories, funnies
5353 dd .common_funny = []
5454 #
5555 for x in dd .common :
56- a_path = path .cat (dd .a , x )
57- b_path = path .cat (dd .b , x )
56+ a_path = path .join (dd .a , x )
57+ b_path = path .join (dd .b , x )
5858 #
5959 ok = 1
6060 try :
@@ -92,8 +92,8 @@ def phase4(dd): # Find out differences between common subdirectories
9292 # The hide and ignore properties are inherited from the parent
9393 dd .subdirs = {}
9494 for x in dd .common_dirs :
95- a_x = path .cat (dd .a , x )
96- b_x = path .cat (dd .b , x )
95+ a_x = path .join (dd .a , x )
96+ b_x = path .join (dd .b , x )
9797 dd .subdirs [x ] = newdd = dircmp ().new (a_x , b_x )
9898 newdd .hide = dd .hide
9999 newdd .ignore = dd .ignore
@@ -151,7 +151,7 @@ def report_phase4_closure(dd): # Report and do phase 4 recursively
151151def cmpfiles (a , b , common ):
152152 res = ([], [], [])
153153 for x in common :
154- res [cmp (path .cat (a , x ), path .cat (b , x ))].append (x )
154+ res [cmp (path .join (a , x ), path .join (b , x ))].append (x )
155155 return res
156156
157157
0 commit comments