removed imports on sfa.util.rspec that is gone
[sfa.git] / sfa / client / getNodes.py
index 4d34a43..71d17f0 100644 (file)
@@ -6,8 +6,6 @@ from optparse import OptionParser
 from pprint import pprint
 from types import StringTypes
 
-from sfa.util.rspec import Rspec
-
 def create_parser():
     command = sys.argv[0]
     argv = sys.argv[1:]
@@ -32,7 +30,7 @@ def print_dict(rdict, options, counter=1):
     
     if not isinstance(rdict, dict):
         raise "%s not a dict" % rdict 
-    for (key, value) in rdict.items():
+    for (key, value) in rdict.iteritems():
         if isinstance(value, StringTypes):
             if (attributes and key in attributes) or not attributes:
                 print tab * counter + "%s: %s" % (key, value)
@@ -57,10 +55,10 @@ def main():
     parser = create_parser(); 
     (options, args) = parser.parse_args()
     if not options.infile:
-        print "Rspec file not specified"
+        print "RSpec file not specified"
         return 
         
-    rspec = Rspec()
+    rspec = RSpec()
     try:
         rspec.parseFile(options.infile)
     except: