mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 03:32:54 +00:00 
			
		
		
		
	Fix pylint issues
This commit is contained in:
		@@ -7,6 +7,7 @@ class DeployHandler:
 | 
			
		||||
    keys = ['deploy.start', 'process.restart']
 | 
			
		||||
 | 
			
		||||
    def __init__(self, process_name='webservice'):
 | 
			
		||||
        self.connector = None
 | 
			
		||||
        self.process_name = process_name
 | 
			
		||||
 | 
			
		||||
        self.commands = {
 | 
			
		||||
@@ -20,7 +21,7 @@ class DeployHandler:
 | 
			
		||||
        except KeyError:
 | 
			
		||||
            LOG.error('IGNORING MESSAGE: Invalid message received: %s', message)
 | 
			
		||||
 | 
			
		||||
    def handle_deploy(self, message):
 | 
			
		||||
    def handle_deploy(self, _):
 | 
			
		||||
        self.connector.send_message({
 | 
			
		||||
            'key': 'process.restart',
 | 
			
		||||
            'name': self.process_name
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@ from stat import S_ISFIFO
 | 
			
		||||
from os import access, mkdir, stat, R_OK
 | 
			
		||||
from os.path import exists
 | 
			
		||||
 | 
			
		||||
from pipe_io_server import PipeReaderServer, PipeWriterServer
 | 
			
		||||
from pipe_io_server import PipeWriterServer
 | 
			
		||||
 | 
			
		||||
from tfw.internals.inotify import InotifyObserver, InotifyFileCreatedEvent, InotifyFileDeletedEvent
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -8,9 +8,8 @@ from os.path import join
 | 
			
		||||
from pathlib import Path
 | 
			
		||||
from tempfile import TemporaryDirectory
 | 
			
		||||
 | 
			
		||||
from tfw.internals.inotify import InotifyFileCreatedEvent, InotifyFileDeletedEvent
 | 
			
		||||
 | 
			
		||||
import pytest
 | 
			
		||||
from tfw.internals.inotify import InotifyFileCreatedEvent, InotifyFileDeletedEvent
 | 
			
		||||
 | 
			
		||||
from .pipe_connector import PipeConnector
 | 
			
		||||
from .proxy_pipe_connector_handler import ProxyPipeConnector
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user