package: wrap long lines to avoid pylint C0301
authorW. Trevor King <wking@tremily.us>
Sun, 11 Nov 2012 21:06:08 +0000 (16:06 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 11 Nov 2012 21:19:51 +0000 (16:19 -0500)
pym/gentoolkit/package.py

index f066783c2429b92f1d71395b3e20a9132a3d2507..3bf9fcdd9efeffffb0e9bf531d11b1b339196984 100644 (file)
@@ -198,26 +198,36 @@ class Package(CPV):
                        envvars = (envvars,)
                if prefer_vdb:
                        try:
-                               result = portage.db[portage.root]["vartree"].dbapi.aux_get(self.cpv, envvars)
+                               result = portage.db[portage.root][
+                                       'vartree'].dbapi.aux_get(
+                                       self.cpv, envvars)
                        except KeyError:
                                try:
                                        if not fallback:
                                                raise KeyError
-                                       result = portage.db[portage.root]["porttree"].dbapi.aux_get(self.cpv, envvars)
+                                       result = portage.db[portage.root][
+                                               'porttree'].dbapi.aux_get(
+                                               self.cpv, envvars)
                                except KeyError:
-                                       err = "aux_get returned unexpected results"
-                                       raise errors.GentoolkitFatalError(err)
+                                       raise errors.GentoolkitFatalError(
+                                               'aux_get returned unexpected '
+                                               'results')
                else:
                        try:
-                               result = portage.db[portage.root]["porttree"].dbapi.aux_get(self.cpv, envvars)
+                               result = portage.db[portage.root][
+                                       'porttree'].dbapi.aux_get(
+                                       self.cpv, envvars)
                        except KeyError:
                                try:
                                        if not fallback:
                                                raise KeyError
-                                       result = portage.db[portage.root]["vartree"].dbapi.aux_get(self.cpv, envvars)
+                                       result = portage.db[portage.root][
+                                               'vartree'].dbapi.aux_get(
+                                               self.cpv, envvars)
                                except KeyError:
-                                       err = "aux_get returned unexpected results"
-                                       raise errors.GentoolkitFatalError(err)
+                                       raise errors.GentoolkitFatalError(
+                                               'aux_get returned unexpected '
+                                               'results')
 
                if got_string:
                        return result[0]
@@ -399,7 +409,8 @@ class Package(CPV):
                @note: We blindly assume that the package actually exists on disk.
                """
 
-               unmasked = portage.db[portage.root]["porttree"].dbapi.xmatch("match-visible", self.cpv)
+               unmasked = portage.db[portage.root]['porttree'].dbapi.xmatch(
+                       'match-visible', self.cpv)
                return self.cpv not in unmasked