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:
Ewan Mellor committed 2007-02-06 15:37:11 +00:00
1 parent 85a6129e55
commit 19bcd321c5
1 file changed
+2 -2
+2 -2
View File
@@ -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]
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.