fix flake8 warnings

This commit is contained in:
gcarq 2018-06-22 02:55:27 +02:00 committed by creslinux
parent d7dfa00cb3
commit 75de61843b
3 changed files with 4 additions and 9 deletions

View File

@ -96,7 +96,7 @@ CONF_SCHEMA = {
'type': 'object', 'type': 'object',
'properties': { 'properties': {
'enabled': {'type': 'boolean'}, 'enabled': {'type': 'boolean'},
'listen_ip_address': { "format": "ipv4"}, 'listen_ip_address': {"format": "ipv4"},
'listen_port': { 'listen_port': {
'type': 'integer', 'type': 'integer',
"minimum": 1024, "minimum": 1024,

View File

@ -12,6 +12,7 @@ from ipaddress import IPv4Address
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
app = Flask(__name__) app = Flask(__name__)
class ApiServerSuperWrap(RPC): class ApiServerSuperWrap(RPC):
""" """
This class is for REST calls across api server This class is for REST calls across api server

View File

@ -8,10 +8,8 @@ import time
from requests import get from requests import get
from sys import argv 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: if len(argv) == 1:
print('\nThis script accepts the following arguments') print('\nThis script accepts the following arguments')
@ -47,7 +45,3 @@ if len(argv) == 2 and argv[1] == "stop":
time.sleep(2) time.sleep(2)
d = get(get_url).text d = get(get_url).text
print(d) print(d)