parameters: (self, default_name)
return_statement: return result
docstring: Modify the filename of a log file when rotating.
  
          This is provided so that a custom filename can be provided.
  
          The default implementation calls the 'namer' attribute of the
          handler, if it's callable, passing the default name to
          it. If the attribute isn't callable (the default is None), the name
          is returned unchanged.
  
          :param default_name: The default name for the log file.
docstring_summary: Modify the filename of a log file when rotating.
docstring_tokens: Modify the filename of a log file when rotating .
function: def rotation_filename(self, default_name):
          """
          Modify the filename of a log file when rotating.
  
          This is provided so that a custom filename can be provided.
  
          The default implementation calls the 'namer' attribute of the
          handler, if it's callable, passing the default name to
          it. If the attribute isn't callable (the default is None), the name
          is returned unchanged.
  
          :param default_name: The default name for the log file.
          """
          if not callable(self.namer):
              result = default_name
          else:
              result = self.namer(default_name)
          return result
function_tokens: def rotation_filename ( self , default_name ) : if not callable ( self . namer ) : result = default_name else : result = self . namer ( default_name ) return result