Issue 18415: Normalize single/double quote usage in importlib (original) (raw)

Issue18415

Created on 2013-07-09 19:32 by brett.cannon, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
all_single_quotes.patch madison.may,2013-07-11 19:16 Double quotes --> Single quotes review
all_double_quotes.patch madison.may,2013-07-11 19:17 Single quotes --> Double quotes review
Messages (10)
msg192771 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-07-09 19:32
Importlib has ended up with a mixed use of single and double quotes. Should clean it up to be consistent.
msg192775 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-07-09 20:13
Do you mean in .c and .py files, or in error messages?
msg192777 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-07-09 20:22
String constants in importlib/_bootstrap.py; pylint noticed the discrepancy.
msg192887 - (view) Author: Madison May (madison.may) * Date: 2013-07-11 19:16
Patch using all single quotes for string literals, except for 3 cases of double quoted strings that contain single quotes (I thought it was probably preferable to escaping the single quotes).
msg192888 - (view) Author: Madison May (madison.may) * Date: 2013-07-11 19:17
Patch using all double quotes. Take your pick :)
msg192891 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-07-11 19:38
I prefer single quotes (easier to type =) and yes, using double quotes instead of escaping is preferred. When I have a chance I will take a look at the patch.
msg192935 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-07-12 12:28
Why the stage change? I set it to commit review on purpose as I already did a cursory check and it was fine. I have only have one more paranoid check before do the commit myself. I purposely didn't set patch review as I didn't want anyone wasting their time doing one as I'm going to do the one more and that's enough for committal.
msg192943 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-07-12 15:04
New changeset 33d379c2bb79 by Brett Cannon in branch 'default': Issue #18415: Normalize what type of quotes are used with string http://hg.python.org/cpython/rev/33d379c2bb79
msg192944 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013-07-12 15:05
Thanks for the path, Madison! I also cleaned up the instances using double quotes since it was because I was faking the use of a string's repr instead of explicitly using {!r}.
msg192949 - (view) Author: Madison May (madison.may) * Date: 2013-07-12 15:51
No problem, Brett. Glad to hear you could get rid of those few last pesky double quotes. I'm partial to the single quotes as well.
History
Date User Action Args
2022-04-11 14:57:47 admin set github: 62615
2013-07-12 15:51:45 madison.may set messages: +
2013-07-12 15:05:31 brett.cannon set status: open -> closedresolution: fixedmessages: + stage: commit review -> resolved
2013-07-12 15:04:32 python-dev set nosy: + python-devmessages: +
2013-07-12 12:28:04 brett.cannon set messages: + stage: patch review -> commit review
2013-07-12 06:40:17 Arfrever set stage: commit review -> patch review
2013-07-11 19:38:52 brett.cannon set messages: + stage: needs patch -> commit review
2013-07-11 19:17:32 madison.may set files: + all_double_quotes.patchmessages: +
2013-07-11 19:16:43 madison.may set files: + all_single_quotes.patchnosy: + madison.maymessages: + keywords: + patch
2013-07-09 20:22:37 brett.cannon set messages: +
2013-07-09 20:14:29 Arfrever set nosy: + Arfrever
2013-07-09 20:13:17 vstinner set nosy: + vstinnermessages: +
2013-07-09 19:32:29 brett.cannon create