Skip to content

Commit

Permalink
Dox fix: we always remove "u"
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-hilden committed Jan 13, 2022
1 parent 7d8d8ea commit 3448024
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/the_black_code_style/current_style.md
Expand Up @@ -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
Expand Down

0 comments on commit 3448024

Please sign in to comment.