use == for comparison with literal

See https://bugs.python.org/issue34850
This commit is contained in:
Eric Le Lay 2020-03-22 16:15:51 +01:00
parent 106a1562bd
commit a62fd58a79
1 changed files with 1 additions and 1 deletions

View File

@ -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)