Michael Hipp
2014-03-01 01:21:02 UTC
I'm seeing this exception on the last line of this snippet from core.py.
Am I correct this looks like a bug.
Michael
File
"C:\dev\virtenvs\auction\Lib\site-packages\wxPython_Phoenix-3.0.1.dev76030-py2.7-win32.egg\wx\core.py",
line 69, in __init__
item.__init__(*args, **kw)
TypeError: keyword arguments are not supported
def deprecated(item, msg='', useName=False):
"""
Create a delegating wrapper that raises a deprecation warning. Can be
used with callable objects (functions, methods, classes) or with
properties.
"""
import warnings
name = ''
if useName:
try:
name = ' ' + item.__name__
except AttributeError:
pass
if isinstance(item, type):
# It is a class. Make a subclass that raises a warning.
class DeprecatedClassProxy(item):
def __init__(*args, **kw):
warnings.warn("Using deprecated class%s. %s" % (name, msg),
wxPyDeprecationWarning, stacklevel=2)
item.__init__(*args, **kw)
Am I correct this looks like a bug.
Michael
File
"C:\dev\virtenvs\auction\Lib\site-packages\wxPython_Phoenix-3.0.1.dev76030-py2.7-win32.egg\wx\core.py",
line 69, in __init__
item.__init__(*args, **kw)
TypeError: keyword arguments are not supported
def deprecated(item, msg='', useName=False):
"""
Create a delegating wrapper that raises a deprecation warning. Can be
used with callable objects (functions, methods, classes) or with
properties.
"""
import warnings
name = ''
if useName:
try:
name = ' ' + item.__name__
except AttributeError:
pass
if isinstance(item, type):
# It is a class. Make a subclass that raises a warning.
class DeprecatedClassProxy(item):
def __init__(*args, **kw):
warnings.warn("Using deprecated class%s. %s" % (name, msg),
wxPyDeprecationWarning, stacklevel=2)
item.__init__(*args, **kw)
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+***@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.