[Python-checkins] python/dist/src/Lib/logging __init__.py, 1.16,
1.17
vsajip at users.sourceforge.net
vsajip at users.sourceforge.net
Thu Jul 8 12:22:38 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/logging
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19427
Modified Files:
__init__.py
Log Message:
FileHandler now stores the basename as an absolute path (fix for SF #982049)
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/logging/__init__.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** __init__.py 7 Jul 2004 20:54:47 -0000 1.16
--- __init__.py 8 Jul 2004 10:22:35 -0000 1.17
***************
*** 38,42 ****
__status__ = "beta"
__version__ = "0.4.9.3"
! __date__ = "03 July 2004"
#---------------------------------------------------------------------------
--- 38,42 ----
__status__ = "beta"
__version__ = "0.4.9.3"
! __date__ = "08 July 2004"
#---------------------------------------------------------------------------
***************
*** 710,714 ****
"""
StreamHandler.__init__(self, open(filename, mode))
! self.baseFilename = filename
self.mode = mode
--- 710,716 ----
"""
StreamHandler.__init__(self, open(filename, mode))
! #keep the absolute path, otherwise derived classes which use this
! #may come a cropper when the current directory changes
! self.baseFilename = os.path.abspath(filename)
self.mode = mode
More information about the Python-checkins
mailing list