ia64/xen-unstable
changeset 13852:39a2833dde51
Fix XendLogging to work on Python 2.4.0 and 2.4.1 (the logging library interface
changed with 2.4.2, not 2.4.0).
Signed-off-by: Qing He <qing.he@intel.com>
changed with 2.4.2, not 2.4.0).
Signed-off-by: Qing He <qing.he@intel.com>
author | Ewan Mellor <ewan@xensource.com> |
---|---|
date | Tue Feb 06 15:37:11 2007 +0000 (2007-02-06) |
parents | 0c17f16f9f03 |
children | 2379569b590d |
files | tools/python/xen/xend/XendLogging.py |
line diff
1.1 --- a/tools/python/xen/xend/XendLogging.py Tue Feb 06 15:35:18 2007 +0000 1.2 +++ b/tools/python/xen/xend/XendLogging.py Tue Feb 06 15:37:11 2007 +0000 1.3 @@ -52,8 +52,8 @@ if 'TRACE' not in logging.__dict__: 1.4 for frame in frames: 1.5 filename = os.path.normcase(frame[1]) 1.6 if filename != thisfile and filename != logging._srcfile: 1.7 - major, minor, _, _, _ = sys.version_info 1.8 - if major == 2 and minor >= 4: 1.9 + major, minor, micro, _, _ = sys.version_info 1.10 + if (major, minor, micro) >= (2, 4, 2): 1.11 return filename, frame[2], frame[3] 1.12 else: 1.13 return filename, frame[2]