Fix breakage for python3 from trying to mix bytes and unicode in
authorZac Medico <zmedico@gentoo.org>
Thu, 2 Sep 2010 19:54:50 +0000 (12:54 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 2 Sep 2010 19:54:50 +0000 (12:54 -0700)
load_default_config().

pym/portage/_sets/__init__.py

index e2db3eea43a4049f13385128bf39552227aeed27..1b3484ec1eb6b1899cb65f119e72b0e8d2559310 100644 (file)
@@ -231,7 +231,7 @@ def load_default_config(settings, trees):
        def _getfiles():
                for path, dirs, files in os.walk(os.path.join(global_config_path, "sets")):
                        for f in files:
-                               if not f.startswith('.'):
+                               if not f.startswith(b'.'):
                                        yield os.path.join(path, f)
 
                dbapi = trees["porttree"].dbapi