Fix minor comparison weirdness.
authorFredrik Tolf <fredrik@dolda2000.com>
Thu, 19 Jan 2023 16:46:01 +0000 (17:46 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Thu, 19 Jan 2023 16:46:01 +0000 (17:46 +0100)
tpkg

diff --git a/tpkg b/tpkg
index 34c8ff3..a9b3024 100755 (executable)
--- 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():