style: fix all_regions code and remove bogus region type
authorNathan Binkert <nate@binkert.org>
Sun, 17 Apr 2011 21:21:04 +0000 (14:21 -0700)
committerNathan Binkert <nate@binkert.org>
Sun, 17 Apr 2011 21:21:04 +0000 (14:21 -0700)
util/style.py

index 0676ee1b515a368ce15c117a8efdd92fe3bdcabd..30d39aae8a298fc42b894ca49c8d9a380f94a54f 100644 (file)
@@ -45,7 +45,7 @@ from m5.util import neg_inf, pos_inf, Region, Regions
 import sort_includes
 from file_types import lang_type
 
-all_regions = Region(neg_inf, pos_inf)
+all_regions = Regions(Region(neg_inf, pos_inf))
 
 tabsize = 8
 lead = re.compile(r'^([ \t]+)')
@@ -114,10 +114,6 @@ class StdioUI(UserInterface):
     def write(self, string):
         sys.stdout.write(string)
 
-class Region(object):
-    def __init__(self, asdf):
-        self.regions = Foo
-
 class Verifier(object):
     def __init__(self, ui, repo=None):
         self.ui = ui