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:]
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)
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: