Commit Graph

4 Commits

Author SHA1 Message Date
YOCKOW
d10381557b [NFC] Python Lint: Fix E275(missing whitespace after keyword) issues. 2022-08-21 16:07:07 +09:00
Daniel Duan
3dfc40898c [NFC] Remove Python 2 imports from __future__ (#42086)
The `__future__` we relied on is now,  where the 3 specific things are
all included [since Python 3.0](https://docs.python.org/3/library/__future__.html):

* absolute_import
* print_function
* unicode_literals
* division

These import statements are no-ops and are no longer necessary.
2022-04-13 14:01:30 -07:00
Saleem Abdulrasool
f77e794977 test: make binary_sub python 2, 3 compatible
In order to access `stdin`, `stdout` as binary, you must use the
`buffer` member in Python 3.  The replacement of the binary data
requires that pattern and the replacement be byte objects.  Convert the
pattern and replacement to UTF-8 encoded bytes.
2020-06-23 08:19:08 -07:00
Jordan Rose
7926cfdd96 [test] Fix serialization test for incompatible targets.
Rather than use pre-generated swiftmodule files, generate an empty module
and then replace the target triple embedded in it. This unfortunately
necessitates an external script beacuse typical command-line tools are not
meant for operating on binary files.

Swift SVN r24556
2015-01-20 18:36:11 +00:00