From bc9d2493a98d19ee506d8e2548ba793d2b1f2c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 25 Apr 2021 13:08:51 +0200 Subject: [PATCH] dict for --- kafka/consumer.py | 4 ++-- rabbit/consumer.py | 4 ++-- zmq/consumer.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kafka/consumer.py b/kafka/consumer.py index 7761811..5099855 100644 --- a/kafka/consumer.py +++ b/kafka/consumer.py @@ -25,5 +25,5 @@ except KeyboardInterrupt: dt[dts] = 1 else: dt[dts] +=1 - for key, value in dt: - print(key,",",value) + for key in dt: + print(key,",",dt[key]) diff --git a/rabbit/consumer.py b/rabbit/consumer.py index fe8a530..f9ca60f 100644 --- a/rabbit/consumer.py +++ b/rabbit/consumer.py @@ -31,5 +31,5 @@ except KeyboardInterrupt: dt[dts] = 1 else: dt[dts] +=1 - for key, value in dt: - print(key,",",value) + for key in dt: + print(key,",",dt[key]) diff --git a/zmq/consumer.py b/zmq/consumer.py index 085deb1..280d461 100644 --- a/zmq/consumer.py +++ b/zmq/consumer.py @@ -25,5 +25,5 @@ except KeyboardInterrupt: dt[dts] = 1 else: dt[dts] +=1 - for key, value in dt: - print(key,",",value) + for key in dt: + print(key,",",dt[key])