use print() - import print_function - should be fine for both py2 and py3
[nepi.git] / src / nepi / resources / planetlab / sfa_node.py
index e00fbcb..81783cd 100644 (file)
@@ -16,6 +16,8 @@
 #
 # Author: Lucia Guevgeozian <lucia.guevgeozian_odizzio@inria.fr>
 
+from __future__ import print_function
+
 from nepi.execution.attribute import Attribute, Flags, Types
 from nepi.execution.resource import ResourceManager, clsinit_copy, \
         ResourceState
@@ -529,10 +531,10 @@ class PlanetlabSfaNode(LinuxNode):
             # and perform ping to check that is really alive
             if not self._blacklisted(host_hrn):
                 if not self._reserved(host_hrn):
-                    print self.sfaapi._reserved ,self.guid
+                    print(self.sfaapi._reserved ,self.guid)
                     for hostname, hrn in nodes.iteritems():
                         if host_hrn == hrn:
-                            print 'hostname' ,hostname
+                            print('hostname' ,hostname)
                             ping_ok = self._do_ping(hostname)
                 
                     if not ping_ok: