comparison tests/heredoctest.py @ 43076:2372284d9457

formatting: blacken the codebase This is using my patch to black (https://github.com/psf/black/pull/826) so we don't un-wrap collection literals. Done with: hg files 'set:**.py - mercurial/thirdparty/** - "contrib/python-zstandard/**"' | xargs black -S # skip-blame mass-reformatting only # no-check-commit reformats foo_bar functions Differential Revision: https://phab.mercurial-scm.org/D6971
author Augie Fackler <augie@google.com>
date Sun, 06 Oct 2019 09:45:02 -0400
parents 55fd0fefbec4
children 6000f5b25c9b
comparison
equal deleted inserted replaced
43075:57875cf423c9 43076:2372284d9457
1 from __future__ import absolute_import, print_function 1 from __future__ import absolute_import, print_function
2 2
3 import sys 3 import sys
4 4
5
5 def flush(): 6 def flush():
6 sys.stdout.flush() 7 sys.stdout.flush()
7 sys.stderr.flush() 8 sys.stderr.flush()
9
8 10
9 globalvars = {} 11 globalvars = {}
10 lines = sys.stdin.readlines() 12 lines = sys.stdin.readlines()
11 while lines: 13 while lines:
12 l = lines.pop(0) 14 l = lines.pop(0)