X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=blobdiff_plain;f=nodemanager.py;h=dfe62848755819ab2a2d5fe584efda6fdbb1090f;hp=78a6d1a2e809ec8de4f07312d269a78ab8368dc5;hb=48a73b18fd7daed13c645c1adeddb57b560e7a2d;hpb=7b8fc390afd0349706c45c3ae970770cdf9dceae diff --git a/nodemanager.py b/nodemanager.py index 78a6d1a..dfe6284 100755 --- a/nodemanager.py +++ b/nodemanager.py @@ -11,7 +11,7 @@ import optparse import time -import xmlrpclib +import xmlrpc.client import socket import os import sys @@ -198,11 +198,11 @@ class NodeManager: try: other_pid = tools.pid_file() if other_pid != None: - print """There might be another instance of the node manager running as pid {}. -If this is not the case, please remove the pid file {}. -- exiting""".format(other_pid, tools.PID_FILE) + print("""There might be another instance of the node manager running as pid {}. +If this is not the case, please remove the pid file {}. -- exiting""".format(other_pid, tools.PID_FILE)) return - except OSError, err: - print "Warning while writing PID file:", err + except OSError as err: + print("Warning while writing PID file:", err) # load modules self.loaded_modules = []