b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | From 0d9251aa4b7f925c908c048ae2eab123acab32d6 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexandru Ardelean <ardeleanalex@gmail.com> |
| 3 | Date: Wed, 16 Mar 2022 09:46:03 +0200 |
| 4 | Subject: [PATCH] bcg: gateway: use Python's built-in json library |
| 5 | |
| 6 | This reduces the dependency list by one, since Python has a built-in JSON |
| 7 | library with the same API. |
| 8 | |
| 9 | Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> |
| 10 | --- |
| 11 | bcg/gateway.py | 2 +- |
| 12 | requirements.txt | 1 - |
| 13 | 2 files changed, 1 insertion(+), 2 deletions(-) |
| 14 | |
| 15 | --- a/bcg/gateway.py |
| 16 | +++ b/bcg/gateway.py |
| 17 | @@ -3,7 +3,7 @@ |
| 18 | import os |
| 19 | import time |
| 20 | import logging |
| 21 | -import simplejson as json |
| 22 | +import json |
| 23 | import platform |
| 24 | import socket |
| 25 | import decimal |
| 26 | --- a/requirements.txt |
| 27 | +++ b/requirements.txt |
| 28 | @@ -3,6 +3,5 @@ click-log>=0.2.1 |
| 29 | paho-mqtt>=1.0 # deb:python3-paho-mqtt>=1.0 |
| 30 | pyserial>=3.0 # deb:python3-serial>=3.0 |
| 31 | PyYAML>=3.11 # deb:python3-yaml>=3.11 |
| 32 | -simplejson>=3.6.0 # deb:python3-simplejson>=3.6.0 |
| 33 | schema>=0.6 |
| 34 | appdirs>=1.0 |