mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
This commit is contained in:
1 parent
85a6129e55
commit
19bcd321c5
1 file changed
+2
-2
@@ -52,8 +52,8 @@ if 'TRACE' not in logging.__dict__:
|
||||
for frame in frames:
|
||||
filename = os.path.normcase(frame[1])
|
||||
if filename != thisfile and filename != logging._srcfile:
|
||||
major, minor, _, _, _ = sys.version_info
|
||||
if major == 2 and minor >= 4:
|
||||
major, minor, micro, _, _ = sys.version_info
|
||||
if (major, minor, micro) >= (2, 4, 2):
|
||||
return filename, frame[2], frame[3]
|
||||
else:
|
||||
return filename, frame[2]
|
||||
|
||||