From 3448024ed2c24ea095ec6908a96a8bf5bee2d778 Mon Sep 17 00:00:00 2001 From: felix-hilden Date: Thu, 13 Jan 2022 19:16:50 +0200 Subject: [PATCH] Dox fix: we always remove "u" --- docs/the_black_code_style/current_style.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/the_black_code_style/current_style.md b/docs/the_black_code_style/current_style.md index f1cc6196f6d..11fe2c8cceb 100644 --- a/docs/the_black_code_style/current_style.md +++ b/docs/the_black_code_style/current_style.md @@ -234,11 +234,9 @@ will replace the latter with the former as long as it does not result in more ba escapes than before. _Black_ also standardizes string prefixes. Prefix characters are made lowercase with the -exception of [capital "R" prefixes](#rstrings-and-rstrings), and in the case of multiple -characters "r" is put first as in spoken language: "raw f-string". On top of that, if -your code is already Python 3.6+ only or it's using the `unicode_literals` future -import, _Black_ will remove `u` from the string prefix as it is meaningless in those -scenarios. +exception of [capital "R" prefixes](#rstrings-and-rstrings), unicode literal markers +(`u`) are removed because they are meaningless in Python 3, and in the case of multiple +characters "r" is put first as in spoken language: "raw f-string". The main reason to standardize on a single form of quotes is aesthetics. Having one kind of quotes everywhere reduces reader distraction. It will also enable a future version of