]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix multiline docstring quote normalization
authorRichard Si <63936253+ichard26@users.noreply.github.com>
Wed, 26 Aug 2020 22:17:59 +0000 (18:17 -0400)
committerŁukasz Langa <lukasz@langa.pl>
Wed, 26 Aug 2020 23:59:41 +0000 (01:59 +0200)
commit7fe19fac5bccc08dbcf21c293ab50f1fcda7716f
tree7f206158a38dcc569e0d597cc306c3d0a1730363
parent5f78401b2863c4c2e8417905fa8b8bf4d648510d
Fix multiline docstring quote normalization

The quotes of multiline docstrings are now only normalized when string
normalization is off, instead of the string normalization setting being
ignored and the quotes being *always* normalized.

I had to make a new test case and data file since the current pair for
docstrings only worked when there is no formatting difference between the
formatting results with string normalization on and off. I needed to add
tests for when there *are* differences between the two. So I split
test_docstring's test code when string normalization is disabled into a
new test case along with a new data file.
CHANGES.md
docs/change_log.md
src/black/__init__.py
tests/data/docstring_no_string_normalization.py [new file with mode: 0644]
tests/test_black.py