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

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:

Open file explicitly with UTF-8 so it works on Windows, too
authorŁukasz Langa <lukasz@langa.pl>
Thu, 20 Aug 2020 17:21:40 +0000 (19:21 +0200)
committerŁukasz Langa <lukasz@langa.pl>
Fri, 21 Aug 2020 14:45:30 +0000 (16:45 +0200)
tests/test_black.py

index 7793b0e11317edf1e6a39d4f991a110dc6af99f7..f89f1403abad851f349026443e84d526d2255cb3 100644 (file)
@@ -2062,7 +2062,7 @@ class BlackDTestCase(AioHTTPTestCase):
         self.assertIsNotNone(response.headers.get(blackd.BLACK_VERSION_HEADER))
 
 
-with open(black.__file__, "r") as _bf:
+with open(black.__file__, "r", encoding="utf-8") as _bf:
     black_source_lines = _bf.readlines()