From 814894da7b9ac813211075cd3be08489d0314c21 Mon Sep 17 00:00:00 2001 From: gcarq Date: Fri, 22 Jun 2018 02:55:27 +0200 Subject: [PATCH] fix flake8 warnings --- freqtrade/constants.py | 2 +- freqtrade/rpc/api_server.py | 1 + freqtrade/rpc/rest_client.py | 10 ++-------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/freqtrade/constants.py b/freqtrade/constants.py index 8560bf8a3..256f1bfe1 100644 --- a/freqtrade/constants.py +++ b/freqtrade/constants.py @@ -89,7 +89,7 @@ CONF_SCHEMA = { 'type': 'object', 'properties': { 'enabled': {'type': 'boolean'}, - 'listen_ip_address': { "format": "ipv4"}, + 'listen_ip_address': {"format": "ipv4"}, 'listen_port': { 'type': 'integer', "minimum": 1024, diff --git a/freqtrade/rpc/api_server.py b/freqtrade/rpc/api_server.py index 04150b4d7..9810782ef 100644 --- a/freqtrade/rpc/api_server.py +++ b/freqtrade/rpc/api_server.py @@ -12,6 +12,7 @@ from ipaddress import IPv4Address logger = logging.getLogger(__name__) app = Flask(__name__) + class ApiServerSuperWrap(RPC): """ This class is for REST calls across api server diff --git a/freqtrade/rpc/rest_client.py b/freqtrade/rpc/rest_client.py index fa63cf4f7..1e54bbafd 100755 --- a/freqtrade/rpc/rest_client.py +++ b/freqtrade/rpc/rest_client.py @@ -8,10 +8,8 @@ import time from requests import get from sys import argv - - -#TODO - use argparse to clean this up -#TODO - use IP and Port from config.json not hardcode +# TODO - use argparse to clean this up +# TODO - use IP and Port from config.json not hardcode if len(argv) == 1: print('\nThis script accepts the following arguments') @@ -47,7 +45,3 @@ if len(argv) == 2 and argv[1] == "stop": time.sleep(2) d = get(get_url).text print(d) - - - -