.editorconfig
author Gregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Nov 2019 20:57:31 -0800
branchstable
changeset 43416 e7eb67eab53f
parent 38281 1d6066336d7b
child 45392 c25efc468a49
permissions -rw-r--r--
tests: write out file using bytes I/O The encoding of sys.stdout varies between Python versions. So using a one-liner to write a file from a Unicode string is not deterministic. This commit writes out the file using bytes I/O to ensure we have exactly the bytes we want in the file. This change fixes a test failure in Python 3.5/3.6. Differential Revision: https://phab.mercurial-scm.org/D7226

# See http://EditorConfig.org for the specification

root = true

[*.py]
indent_size = 4
indent_style = space
trim_trailing_whitespace = true

[*.{c,h}]
indent_size = 8
indent_style = tab
trim_trailing_whitespace = true

[*.t]
indent_size = 2
indent_style = space
trim_trailing_whitespace = false