diff options
Diffstat (limited to 'example_stats_receiver.py')
-rwxr-xr-x | example_stats_receiver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example_stats_receiver.py b/example_stats_receiver.py index a48f560..9c9750c 100755 --- a/example_stats_receiver.py +++ b/example_stats_receiver.py @@ -7,7 +7,7 @@ import os import os.path import socket import argparse -import yaml +import json parser = argparse.ArgumentParser( description="Example Stats UNIX Datagram Socket Receiver") @@ -34,5 +34,5 @@ while True: data, addr = sock.recvfrom(256) logging.info("RX from {}". format(addr)) - data = yaml.safe_load(data) + data = json.loads(data) print(data) |