admin/util/log.py
def rotate(self, source, dest):
        """
        When rotating, rotate the current log.

        The default implementation calls the 'rotator' attribute of the
        handler, if it's callable, passing the source and dest arguments to
        it. If the attribute isn't callable (the default is None), the source
        is simply renamed to the destination.

        :param source: The source filename. This is normally the base
                       filename, e.g. 'test.log'
        :param dest:   The destination filename. This is normally
                       what the source is rotated to, e.g. 'test.log.1'.
        """
        if not callable(self.rotator):
            # Issue 18940: A file may not have been created if delay is True.
            if os.path.exists(source):
                try:
                    os.rename(source, dest)
                except FileNotFoundError:
                    pass
        else:
            self.rotator(source, dest)

        When rotating, rotate the current log.

        The default implementation calls the 'rotator' attribute of the
        handler, if it's callable, passing the source and dest arguments to
        it. If the attribute isn't callable (the default is None), the source
        is simply renamed to the destination.

        :param source: The source filename. This is normally the base
                       filename, e.g. 'test.log'
        :param dest:   The destination filename. This is normally
                       what the source is rotated to, e.g. 'test.log.1'.
        
When rotating, rotate the current log.
The default implementation calls the 'rotator' attribute of the
handler, if it's callable, passing the source and dest arguments to
it. If the attribute isn't callable (the default is None), the source
is simply renamed to the destination.
When rotating rotate the current log . The default implementation calls the ' rotator ' attribute of the handler if it ' s callable passing the source and dest arguments to it . If the attribute isn ' t callable ( the default is None ) the source is simply renamed to the destination .
def rotate(self, source, dest):
        if not callable(self.rotator):
            if os.path.exists(source):
                try:
                    os.rename(source, dest)
                except FileNotFoundError:
                    pass
        else:
            self.rotator(source, dest)
def rotate ( self , source , dest ) : if not callable ( self . rotator ) : if os . path . exists ( source ) : try : os . rename ( source , dest ) except FileNotFoundError : pass else : self . rotator ( source , dest )
When rotating, rotate the current log.
When rotating rotate the current log .
"""
        When rotating, rotate the current log.

        The default implementation calls the 'rotator' attribute of the
        handler, if it's callable, passing the source and dest arguments to
        it. If the attribute isn't callable (the default is None), the source
        is simply renamed to the destination.

        :param source: The source filename. This is normally the base
                       filename, e.g. 'test.log'
        :param dest:   The destination filename. This is normally
                       what the source is rotated to, e.g. 'test.log.1'.
        """ # Issue 18940: A file may not have been created if delay is True.
self
source
The source filename. This is normally the base
filename, e.g. 'test.log'
The source filename . This is normally the base filename e . g . ' test . log '
dest
The destination filename. This is normally
what the source is rotated to, e.g.
The destination filename . This is normally what the source is rotated to e . g .