File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -406,7 +406,7 @@ def realpath(filename):
406406 for i in range (2 , len (bits )+ 1 ):
407407 component = join (* bits [0 :i ])
408408 # Resolve symbolic links.
409- if islink (component ):
409+ if islink (component ):
410410 resolved = _resolve_link (component )
411411 if resolved is None :
412412 # Infinite loop -- return original component + rest of the path
@@ -425,12 +425,12 @@ def _resolve_link(path):
425425 """
426426 paths_seen = []
427427 while islink (path ):
428- if path in paths_seen :
428+ if path in paths_seen :
429429 # Already seen this path, so we must have a symlink loop
430430 return None
431- paths_seen .append (path )
431+ paths_seen .append (path )
432432 # Resolve where the link points to
433- resolved = os .readlink (path )
433+ resolved = os .readlink (path )
434434 if not abspath (resolved ):
435435 dir = dirname (path )
436436 path = normpath (join (dir , resolved ))
You can’t perform that action at this time.
0 commit comments