python - Utilizing Logging checker when logger is an object attribute -


I'm trying to check PyLint to use PyLint 1.3.1. In the Trac project we have issues in which there is a feature of the logger object. For example, there is an environment object and later the logger is used through the call. PyLint has no success to find examples of string interpolation when I run on pylint --disable = all --enable = logging --logging-modules = self.env.log trac / wiki / model.py Has found .

PyLint does not have any problem finding the following case:

trac.log from logger_factory log = logger_factory () log.info ('deleted version% Page% s'% (version, self.name)) D


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -