X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=clientbin%2FgetNodes.py;h=f2d39a2c55f5c48e2b0e68ff4218f4f72f22a102;hb=a0ef6e7c91c3c8fa376943d28fec8c5c204a78cd;hp=71d17f02c2e209fc7fc6cd7d99a3b31c085ad80b;hpb=cedf37c8661ec0b05349274962bf2db9cfa6a24d;p=sfa.git diff --git a/clientbin/getNodes.py b/clientbin/getNodes.py index 71d17f02..f2d39a2c 100644 --- a/clientbin/getNodes.py +++ b/clientbin/getNodes.py @@ -51,13 +51,18 @@ def print_dict(rdict, options, counter=1): if keys: print tab * (counter) + "(children: %s)" % (",".join(keys)) +# +# this code probably is obsolete +# RSpec is not imported, it does not have a toDict() method anyway +# plus, getNodes.py is not exposed in packaging +# def main(): parser = create_parser(); (options, args) = parser.parse_args() if not options.infile: print "RSpec file not specified" return - + rspec = RSpec() try: rspec.parseFile(options.infile) @@ -77,6 +82,6 @@ def main(): if __name__ == '__main__': try: main() - except Exception, e: + except Exception as e: raise print e