def log_vars(self, message, variables, rem_vars=("self",)):
        """Logs variables with given message if --verbose."""
        if self.verbose:
            new_vars = dict(variables)
            for v in rem_vars:
                del new_vars[v]
            printerr(message, new_vars)
def log_vars ( self , message , variables , rem_vars = ( "self" , ) ) : if self . verbose : new_vars = dict ( variables ) for v in rem_vars : del new_vars [ v ] printerr ( message , new_vars )
Logs variables with given message if --verbose.