use new-style classes
authorTimo Savola <tsavola@movial.fi>
Wed, 2 Apr 2008 14:58:33 +0000 (17:58 +0300)
committerTimo Savola <tsavola@movial.fi>
Wed, 2 Apr 2008 14:58:33 +0000 (17:58 +0300)
matrix/config.py
matrix/git.py
matrix/graph.py
matrix/matrix.py
matrix/rootfs.py

index 001594bdf1da7c4ec0a950600cb566157b1d78df..eb80f3e88404f3b94f9c99b6c106736d7f849b27 100644 (file)
@@ -17,7 +17,7 @@ libc = 'glibc'
 verbose = False
 debug = False
 
 verbose = False
 debug = False
 
-class Board:
+class Board(object):
        def __init__(self, name, arch, gcc_march, gcc_mcpu='', gcc_mfpu='', gcc_options='', gnu_host='', flash_erase_size='65536', flash_pad_size='0'):
                self.name = name
                self.arch = arch
        def __init__(self, name, arch, gcc_march, gcc_mcpu='', gcc_mfpu='', gcc_options='', gnu_host='', flash_erase_size='65536', flash_pad_size='0'):
                self.name = name
                self.arch = arch
@@ -31,7 +31,7 @@ class Board:
 
                boards[name] = self
 
 
                boards[name] = self
 
-class Component:
+class Component(object):
        import git
 
        from_platform = False
        import git
 
        from_platform = False
index ffa53345b697f8ac8b89572b3f73ea38ef3dc86e..406ea91f3502d41556756832c6834b3ae07a5ad3 100644 (file)
@@ -7,7 +7,7 @@ import bz2
 
 import config
 
 
 import config
 
-class Error (RuntimeError):
+class Error(RuntimeError):
        def __init__(self, args, workdir=None):
                command = ' '.join(args)
 
        def __init__(self, args, workdir=None):
                command = ' '.join(args)
 
index 85ca2a88d88634cb2e14d6adacfb96785165102b..8805844c72da1e672975e279bb483db11cb41dbf 100644 (file)
@@ -8,7 +8,7 @@ import config
 import matrix
 
 
 import matrix
 
 
-class Option:
+class Option(object):
        short_opt = None
        long_opt = None
        takes_arg = False
        short_opt = None
        long_opt = None
        takes_arg = False
@@ -22,7 +22,7 @@ class Option:
                self.help = help
 
 
                self.help = help
 
 
-class Graph:
+class Graph(object):
        all_targets = []
        all_deps = []
        maxdepth = -1
        all_targets = []
        all_deps = []
        maxdepth = -1
index 1b0c41e744e324bf90c149dd07b5a94fa9060b26..0342687081cca294897fb0bbcc265e77b375c542 100644 (file)
@@ -240,7 +240,7 @@ def update_component_depends(packages):
        if fail:
                raise Error('Invalid component tree')
 
        if fail:
                raise Error('Invalid component tree')
 
-class Depend:
+class Depend(object):
        regex = re.compile(r'([@]?)([^\s:]+)[:]?([<>=]*)([^\s:]*)[:]?(.*)')
 
        def __init__(self, spec):
        regex = re.compile(r'([@]?)([^\s:]+)[:]?([<>=]*)([^\s:]*)[:]?(.*)')
 
        def __init__(self, spec):
@@ -296,7 +296,7 @@ def update_component_packages(c, targets, packages):
        elif config.debug:
                print 'Component', c.name, 'does not provide any packages'
 
        elif config.debug:
                print 'Component', c.name, 'does not provide any packages'
 
-class Package:
+class Package(object):
        def __init__(self, name, component):
                self.name = name
                self.component = component
        def __init__(self, name, component):
                self.name = name
                self.component = component
index 593c6ffcf9117582685653d5f90ebace10570ea7..fda6df3da6f8c551522d036a1e3a41fe72909a5c 100644 (file)
@@ -9,7 +9,7 @@ import re
 import shutil
 import sys
 
 import shutil
 import sys
 
-class RootFS:
+class RootFS(object):
        builddir = "/tmp"
        target = None
 
        builddir = "/tmp"
        target = None