Fixing Python3 compatibility with the XML client

This commit is contained in:
Sebastien Dudek 2021-06-01 12:25:36 +02:00
parent bd81c349c6
commit 335c2bd5e4
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
#
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# <sebastien.dudek(<@T>)synacktiv.com> wrote this file. As long as you retain this notice you
# <sebastien.dudek(<@T>)penthertz.com> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return FlUxIuS ;)
# ----------------------------------------------------------------------------
@ -13,7 +13,7 @@ from __future__ import print_function
import time
import json
import random
import xmlrpclib
import xmlrpc.client
import argparse
from utils.eu_arfcn_calc import *
@ -44,7 +44,7 @@ if __name__ == "__main__":
filterplmn = args.filterplmn
bandwidth = args.bandwidth
s = xmlrpclib.Server("http://%s:%s" % (host, port))
s = xmlrpc.client.ServerProxy("http://%s:%s" % (host, port))
with open(filepath) as f:
modmobdata = json.load(f)