From: Fredrik Tolf Date: Thu, 19 Jan 2023 16:46:01 +0000 (+0100) Subject: Fix minor comparison weirdness. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=56c4259105cbc928e1c66afaffddabceda2b2e2c;p=tpkg.git Fix minor comparison weirdness. --- diff --git a/tpkg b/tpkg index 34c8ff3..a9b3024 100755 --- a/tpkg +++ b/tpkg @@ -217,7 +217,7 @@ class vfspkg(object): def __iter__(self): def scan(lp, fp): - dpre = "" if (lp is "") else lp + "/" + dpre = "" if (lp == "") else lp + "/" for dent in os.scandir(fp): dpath = dpre + dent.name if dent.is_dir():