revert to python 3.5

This commit is contained in:
2021-02-02 18:43:39 +01:00
parent 73b65fd7a5
commit 00f8657e09
+5 -2
View File
@@ -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")