From dcce3bdc86627a251ae0d1fec6d88946fdc8c5df Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 4 Nov 2021 13:37:17 +0000 Subject: [PATCH] Gateway: Minor renames to make PyCharm not gripe These are related to local variables shadowing globals. --- src/eddn/Gateway.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/eddn/Gateway.py b/src/eddn/Gateway.py index 18b49ac..44e4d87 100644 --- a/src/eddn/Gateway.py +++ b/src/eddn/Gateway.py @@ -45,8 +45,8 @@ logger.info('Made logger') # This socket is used to push market data out to the Announcers over ZeroMQ. -context = zmq.Context() -sender = context.socket(zmq.PUB) +zmq_context = zmq.Context() +sender = zmq_context.socket(zmq.PUB) validator = Validator() @@ -360,9 +360,9 @@ def stats() -> str: :return: JSON stats data """ - stats = stats_collector.getSummary() - stats["version"] = Settings.EDDN_VERSION - return simplejson.dumps(stats) + stats_current = stats_collector.getSummary() + stats_current["version"] = Settings.EDDN_VERSION + return simplejson.dumps(stats_current) class MalformedUploadError(Exception):