python3 - 2to3 + miscell obvious tweaks
[sfa.git] / clientbin / sfiAddAttribute.py
index 89f4a7c..186828c 100755 (executable)
@@ -29,7 +29,7 @@ if command.opts.infile:
         f.close()
 
     for name in attrs:
-        print >> sys.stderr, name, attrs[name]
+        print(name, attrs[name], file=sys.stderr)
         for value in attrs[name]:
             if not nodes:
                 try:
@@ -45,4 +45,4 @@ if command.opts.infile:
                         logger.log_exc(
                             "sfiAddAttribute FAILED on node %s: %s=%s" % (node, name, value))
 
-    print rspec.toxml()
+    print(rspec.toxml())