[Python-checkins] python/dist/src/Lib/logging __init__.py,1.1,1.2 config.py,1.1,1.2 handlers.py,1.1,1.2
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Wed, 13 Nov 2002 08:18:32 -0800
Update of /cvsroot/python/python/dist/src/Lib/logging
In directory usw-pr-cvs1:/tmp/cvs-serv23293
Modified Files:
__init__.py config.py handlers.py
Log Message:
Get rid of #! lines, references to usage as __main__, README.txt, and
http://www.red-dove.com/python_logging.html.
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/__init__.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** __init__.py 13 Nov 2002 16:15:57 -0000 1.1
--- __init__.py 13 Nov 2002 16:18:29 -0000 1.2
***************
*** 1,4 ****
- #! /usr/bin/env python
- #
# Copyright 2001-2002 by Vinay Sajip. All Rights Reserved.
#
--- 1,2 ----
***************
*** 16,25 ****
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- #
- # For the change history, see README.txt in the distribution.
- #
- # This file is part of the Python logging distribution. See
- # http://www.red-dove.com/python_logging.html
- #
"""
--- 14,17 ----
***************
*** 59,72 ****
#_srcfile is used when walking the stack to check when we've got the first
# caller stack frame.
! #If run as a script, __file__ is not bound.
! #
! if __name__ == "__main__":
! _srcfile = None
else:
! if string.lower(__file__[-4:]) in ['.pyc', '.pyo']:
! _srcfile = __file__[:-4] + '.py'
! else:
! _srcfile = __file__
! _srcfile = os.path.normcase(_srcfile)
#
--- 51,59 ----
#_srcfile is used when walking the stack to check when we've got the first
# caller stack frame.
! if string.lower(__file__[-4:]) in ['.pyc', '.pyo']:
! _srcfile = __file__[:-4] + '.py'
else:
! _srcfile = __file__
! _srcfile = os.path.normcase(_srcfile)
#
***************
*** 1179,1183 ****
h.flush()
h.close()
-
- if __name__ == "__main__":
- print __doc__
--- 1166,1167 ----
Index: config.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/config.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** config.py 13 Nov 2002 16:15:58 -0000 1.1
--- config.py 13 Nov 2002 16:18:29 -0000 1.2
***************
*** 1,4 ****
- #! /usr/bin/env python
- #
# Copyright 2001-2002 by Vinay Sajip. All Rights Reserved.
#
--- 1,2 ----
***************
*** 16,25 ****
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- #
- # For the change history, see README.txt in the distribution.
- #
- # This file is part of the Python logging distribution. See
- # http://www.red-dove.com/python_logging.html
- #
"""
--- 14,17 ----
Index: handlers.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/handlers.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** handlers.py 13 Nov 2002 16:15:58 -0000 1.1
--- handlers.py 13 Nov 2002 16:18:29 -0000 1.2
***************
*** 1,4 ****
- #! /usr/bin/env python
- #
# Copyright 2001-2002 by Vinay Sajip. All Rights Reserved.
#
--- 1,2 ----
***************
*** 16,25 ****
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- #
- # For the change history, see README.txt in the distribution.
- #
- # This file is part of the Python logging distribution. See
- # http://www.red-dove.com/python_logging.html
- #
"""
--- 14,17 ----