a little nicer wrt pep8
[sfa.git] / clientbin / sfiAddAttribute.py
index 89f4a7c..7f33681 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
 
 import sys
 
@@ -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())