return myparams
# search functionality
-class search:
+class search(object):
#
# class constants
f.add_flowing_data(x)
f.end_paragraph(1)
-class depgraph:
+class depgraph(object):
pkg_tree_map = {
"ebuild":"porttree",
#beautiful directed graph object
-class digraph:
+class digraph(object):
def __init__(self):
"""Create an empty digraph"""
return myusevars
def check_config_instance(test):
- if not test or (str(test.__class__) != 'portage.config'):
- raise TypeError, "Invalid type for config object: %s" % test.__class__
+ if not isinstance(test, config):
+ raise TypeError("Invalid type for config object: %s" % test.__class__)
-class config:
+class config(object):
"""
This class encompasses the main portage configuration. Data is pulled from
ROOT/PORTDIR/profiles/, from ROOT/etc/make.profile incrementally through all
import os, sys
from portage.data import portage_gid
-class cache:
+class cache(object):
"""
Maintains the cache information about eclasses used in ebuild.
"""
return mya
-class FileChecker:
+class FileChecker(object):
def __init__(self,keydir=None,keyring=None,requireSignedRing=False,minimumTrust=EXISTS):
self.minimumTrust = TRUSTED # Default we require trust. For rings.
self.keydir = None
cmd = ["stty", "rows", str(lines), "columns", str(columns)]
spawn(cmd, env=os.environ, fd_pipes={0:fd})
-class EOutput:
+class EOutput(object):
"""
Performs fancy terminal formatting for status and informational messages.
startpos=startpos+namelen+12
os.chdir(origdir)
-class tbz2:
+class tbz2(object):
def __init__(self,myfile):
self.file=myfile
self.filestat=None