Commit f150378e authored by Larry Hastings's avatar Larry Hastings

Issue #21629: Fix Argument Clinic's "--converters" feature.

parent 80f2262d
...@@ -118,6 +118,11 @@ Windows ...@@ -118,6 +118,11 @@ Windows
- Issue #21671, CVE-2014-0224: The bundled version of OpenSSL has been - Issue #21671, CVE-2014-0224: The bundled version of OpenSSL has been
updated to 1.0.1h. updated to 1.0.1h.
Tools/Demos
-----------
- Issue #21629: Fix Argument Clinic's "--converters" feature.
What's New in Python 3.4.1? What's New in Python 3.4.1?
=========================== ===========================
......
...@@ -2044,11 +2044,9 @@ def add_default_legacy_c_converter(cls): ...@@ -2044,11 +2044,9 @@ def add_default_legacy_c_converter(cls):
# automatically add converter for default format unit # automatically add converter for default format unit
# (but without stomping on the existing one if it's already # (but without stomping on the existing one if it's already
# set, in case you subclass) # set, in case you subclass)
if ((cls.format_unit != 'O&') and if ((cls.format_unit not in ('O&', '')) and
(cls.format_unit not in legacy_converters)): (cls.format_unit not in legacy_converters)):
legacy_converters[cls.format_unit] = cls legacy_converters[cls.format_unit] = cls
if cls.format_unit:
legacy_converters[cls.format_unit] = cls
return cls return cls
def add_legacy_c_converter(format_unit, **kwargs): def add_legacy_c_converter(format_unit, **kwargs):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment