Mercurial > hg
diff tests/test-import-context.t @ 41738:c70bdd222dcd
tests: bulk changes to avoid whitespace errors of check-code.py
This is a part of preparation to apply checking with check-code.py on
code fragments embedded in *.t test scripts.
This revision avoids "whitespace" errors of check-code.py below:
- missing whitespace after ","
- missing whitespace in expression
- no whitespace around "=" for named parameters
- wrong whitespace around "="
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 18 Feb 2019 00:27:25 +0900 |
parents | 633da7139e4a |
children | 4c1b4805db57 |
line wrap: on
line diff
--- a/tests/test-import-context.t Mon Feb 18 00:27:25 2019 +0900 +++ b/tests/test-import-context.t Mon Feb 18 00:27:25 2019 +0900 @@ -12,9 +12,9 @@ > count = int(pattern[0:-1]) > char = pattern[-1].encode('utf8') + b'\n' > if not lasteol and i == len(patterns) - 1: - > fp.write((char*count)[:-1]) + > fp.write((char * count)[:-1]) > else: - > fp.write(char*count) + > fp.write(char * count) > fp.close() > EOF $ cat > cat.py <<EOF