use == for comparison with literal
See https://bugs.python.org/issue34850
This commit is contained in:
parent
106a1562bd
commit
a62fd58a79
|
@ -1644,7 +1644,7 @@ def relpath(p1, p2):
|
|||
if len(l1) > 0:
|
||||
p = [('..' + os.sep) * len(l1)]
|
||||
p = p + l2
|
||||
if len(p) is 0:
|
||||
if len(p) == 0:
|
||||
return "."
|
||||
|
||||
return os.path.join(*p)
|
||||
|
|
Loading…
Reference in New Issue