-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Probable typo in Arg Clinic's linear_format() #70504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The curly bracket separator is assigned to “curl”, but then the previous “curly” variable is tested: https://hg.python.org/cpython/annotate/3.5/Tools/clinic/clinic.py#l202 name, curl, trailing = trailing.partition('}') I presume the fix is to assign to “curly”, but I haven’t had a chance to figure out how to test it yet. |
Yeah, change "curl" to "curly". If you commit the fix without a test case I'd forgive you. Or I can do it if that makes you nervous. |
Go ahead. |
New changeset aec2eae8933e by Martin Panter in branch '3.5': New changeset 6c122e4e1cb2 by Martin Panter in branch 'default': |
I did look into testing, but I gave up. :) The test file doesn’t even import. I got the following error (without exception or traceback), cause by the line that reads “c = clinic.Clinic(language='C')”: $ (cd Tools/clinic/ && ../../python clinic_test.py)
Error:
Destination does not exist: 'file'
[Exit 255] |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: