Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d9d7567e
Commit
d9d7567e
authored
Jun 11, 2014
by
Larry Hastings
Browse files
Options
Browse Files
Download
Plain Diff
Issue #21629: Merge from 3.4.
parents
99537627
f150378e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Misc/NEWS
Misc/NEWS
+2
-0
Tools/clinic/clinic.py
Tools/clinic/clinic.py
+1
-3
No files found.
Misc/NEWS
View file @
d9d7567e
...
...
@@ -623,6 +623,8 @@ Tests
Tools/Demos
-----------
- Issue #21629: Fix Argument Clinic'
s
"--converters"
feature
.
-
Add
support
for
``
yield
from
``
to
2
to3
.
-
Add
support
for
the
PEP
465
matrix
multiplication
operator
to
2
to3
.
...
...
Tools/clinic/clinic.py
View file @
d9d7567e
...
...
@@ -2044,11 +2044,9 @@ def add_default_legacy_c_converter(cls):
# automatically add converter for default format unit
# (but without stomping on the existing one if it's already
# 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
)):
legacy_converters
[
cls
.
format_unit
]
=
cls
if
cls
.
format_unit
:
legacy_converters
[
cls
.
format_unit
]
=
cls
return
cls
def
add_legacy_c_converter
(
format_unit
,
**
kwargs
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment