Skip to content
Snippets Groups Projects
Commit 08e5d17d authored by William Roberts's avatar William Roberts
Browse files

Change string.replace to str.replace

parent 7e26307e
No related branches found
No related tags found
No related merge requests found
......@@ -20,8 +20,8 @@ def relativedir( a, b ):
a = os.path.abspath(a)
b = os.path.abspath(b)
pfx = os.path.dirname( os.path.commonprefix( [a,b] ) )+os.sep
a = string.replace( a, pfx, '', 1 )
b = string.replace( b, pfx, '', 1 )
a = str.replace( a, pfx, '', 1 )
b = str.replace( b, pfx, '', 1 )
a = re.sub( core, '..', a )
return os.path.join( a,b )
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment