Commit beb4e99c authored by Michal Horejsek's avatar Michal Horejsek

Pylint

parent c9fec32b
......@@ -145,7 +145,7 @@ class ProxySSHUser(ConchUser):
self.password = password
self.channelLookup.update({b'session': session.SSHSession})
# # pylint: disable=invalid-name
# pylint: disable=invalid-name
def getUserGroupId(self):
"""
Returns tuple with user and group ID.
......@@ -153,12 +153,14 @@ class ProxySSHUser(ConchUser):
"""
return 0, 0
# pylint: disable=invalid-name
def getHomeDir(self):
"""
Method needed by `SSHSessionForUnixConchUser.openShell`.
"""
return "/root"
# pylint: disable=invalid-name
def getShell(self):
"""
Method needed by `SSHSessionForUnixConchUser.openShell`.
......
......@@ -90,6 +90,7 @@ class Options(usage.Options):
raise usage.UsageError('Device token is not valid')
# pylint: disable=useless-object-inheritance
@implementer(IServiceMaker, IPlugin)
class MyServiceMaker(object):
tapname = 'haas_proxy'
......
......@@ -20,7 +20,7 @@ def force_text(value):
# This function is copy-pasted from shutils. It using for compatibility with python 2.7 and 3.6 because shutils
# hasn't which() function in python 2.7. It will be removed when support python 2.7 ends.
# pylint:disable=invalid-name,too-many-branches
# pylint:disable=invalid-name,too-many-branches,unneeded-not
def which(cmd, mode=os.F_OK | os.X_OK, path=None):
"""Given a command, mode, and a PATH string, return the path which
conforms to the given mode on the PATH, or None if there is no such
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment