Changeset - b5bef0b39209
[Not reviewed]
default
0 1 0
Søren Løvborg - 10 years ago 2016-03-02 16:21:11
sorenl@unity3d.com
paster: remove unused BasePasterCommand.notify_msg

This method is not referenced anywhere in the Kallithea or Paste code.
Additionally, calling it with any true-ish `log` argument would trigger
a TypeError exception.
1 file changed with 0 insertions and 11 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/utils.py
Show inline comments
 
@@ -738,17 +738,6 @@ class BasePasterCommand(Command):
 
    takes_config_file = 1
 
    requires_config_file = True
 

	
 
    def notify_msg(self, msg, log=False):
 
        """Make a notification to user, additionally if logger is passed
 
        it logs this action using given logger
 

	
 
        :param msg: message that will be printed to user
 
        :param log: logging instance, to use to additionally log this message
 

	
 
        """
 
        if log and isinstance(log, logging):
 
            log(msg)
 

	
 
    def run(self, args):
 
        """
 
        Overrides Command.run
0 comments (0 inline, 0 general)