revert to python 3.5
This commit is contained in:
@@ -442,10 +442,11 @@ msgboot={}
|
||||
home=os.environ['HOME']
|
||||
configfile="%s/.hbrc" % home
|
||||
cmdargs = []
|
||||
iam=socket.gethostname()
|
||||
|
||||
|
||||
try:
|
||||
optlist, args = getopt.getopt(sys.argv[1:], 'bc:dhm:v')
|
||||
optlist, args = getopt.getopt(sys.argv[1:], 'bc:dhm:n:v')
|
||||
except:
|
||||
helpflag=True
|
||||
|
||||
@@ -464,6 +465,9 @@ for o,a in optlist:
|
||||
msgboot['service'] = "service"
|
||||
msgboot['msg'] = a
|
||||
msgonly=True
|
||||
elif o == '-n':
|
||||
iam=a
|
||||
cmdargs += [o, a]
|
||||
elif o == '-v':
|
||||
verbose=True
|
||||
cmdargs += [o]
|
||||
@@ -501,7 +505,6 @@ reportstrict={True|False}
|
||||
hb_port=PORT
|
||||
interval=INTERVAL
|
||||
hb_hosts=[]
|
||||
iam=socket.gethostname()
|
||||
|
||||
try:
|
||||
f=open(configfile,"r")
|
||||
|
||||
Reference in New Issue
Block a user