fix codemodding on windows (#495)

* pass empty environment
fixes: https://github.com/Instagram/LibCST/issues/494

* remove empty env to support windows.
This commit is contained in:
Jos Verlinde 2021-07-05 13:27:41 +02:00 committed by GitHub
parent e0dd6016a5
commit 8c19f1ca83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,6 @@ def invoke_formatter(formatter_args: Sequence[str], code: AnyStr) -> AnyStr:
AnyStr,
subprocess.check_output(
formatter_args,
env={},
input=code,
universal_newlines=not work_with_bytes,
encoding=None if work_with_bytes else "utf-8",