[Patches] [ python-Patches-836942 ] Avoid "apply" warnings in
"logging", still works in 1.52
SourceForge.net
noreply at sourceforge.net
Thu Dec 11 00:47:58 EST 2003
Patches item #836942, was opened at 2003-11-05 20:56
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=836942&group_id=5470
Category: Library (Lib)
Group: Python 2.3
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Jimmy Retzlaff (jretz)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: Avoid "apply" warnings in "logging", still works in 1.52
Initial Comment:
Avoid warnings in Python 2.3+ by defining an apply
function in terms of the new calling semantics (i.e.,
*args/**kwargs). If that fails because the new calling
semantics are unavailable then leave apply untouched
for 1.52 compatibility.
eval is used to define the function so the SyntaxError
can be caught on versions of Python without the new
calling semantics.
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-12-11 00:47
Message:
Logged In: YES
user_id=33168
The deprecation warning was removed from apply(), so this
patch shouldn't be needed any longer.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=836942&group_id=5470
More information about the Patches
mailing list