Skip to content

Commit 4779344

Browse files
committed
Fixed logging-not-lazy warning from PyLint.
1 parent 0e131b6 commit 4779344

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nut2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def __init__(self, host="127.0.0.1", port=3493, login=None, password=None, debug
8080
logging.getLogger().setLevel(logging.DEBUG)
8181

8282
logging.debug("Class initialization...")
83-
logging.debug(" -> Host = %s (port %s)" % (host, port))
84-
logging.debug(" -> Login = '%s' / '%s'" % (login, password))
83+
logging.debug(" -> Host = %s (port %s)", host, port)
84+
logging.debug(" -> Login = '%s' / '%s'", login, password)
8585

8686
self._host = host
8787
self._port = port
@@ -255,7 +255,7 @@ def list_rw_vars(self, ups=""):
255255
The result is presented as a dictionary containing 'key->val'
256256
pairs.
257257
"""
258-
logging.debug("list_vars from '%s'..." % ups)
258+
logging.debug("list_vars from '%s'...", ups)
259259

260260
self._srv_handler.write("LIST RW %s\n" % ups)
261261
result = self._srv_handler.read_until("\n")

0 commit comments

Comments
 (0)