Rename TFWENV and TAOENV constants to use capital letters

This commit is contained in:
Kristóf Tóth
2018-03-25 16:36:31 +02:00
parent ec469c6b75
commit 1982a3c869
8 changed files with 19 additions and 19 deletions

View File

@ -3,11 +3,11 @@ from xmlrpc.client import Fault as SupervisorFault
from contextlib import suppress
from os import remove
from tfw.config import tfwenv
from tfw.config import TFWENV
class SupervisorMixin:
supervisor = xmlrpc.client.ServerProxy(tfwenv.SUPERVISOR_HTTP_URI).supervisor
supervisor = xmlrpc.client.ServerProxy(TFWENV.SUPERVISOR_HTTP_URI).supervisor
def stop_process(self, process_name):
with suppress(SupervisorFault):