Skip to content

Commit 78a0e71

Browse files
committed
Revert "fix python file encoding error on Windows"
This reverts commit b6bf097.
1 parent b64ac1e commit 78a0e71

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

libcxx/utils/generate_libcxx_cppm_in.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,11 @@
99
import os.path
1010
import sys
1111

12-
from libcxx.header_information import (
13-
module_c_headers,
14-
module_headers,
15-
header_restrictions,
16-
headers_not_available,
17-
libcxx_root,
18-
)
12+
from libcxx.header_information import module_c_headers, module_headers, header_restrictions, headers_not_available, libcxx_root
1913

2014

2115
def write_file(module):
22-
with open(
23-
libcxx_root / "modules" / f"{module}.cppm.in", "w", encoding="utf-8"
24-
) as module_cpp_in:
16+
with open(libcxx_root / "modules" / f"{module}.cppm.in", "w") as module_cpp_in:
2517
module_cpp_in.write(
2618
"""\
2719
// -*- C++ -*-
@@ -33,7 +25,6 @@ def write_file(module):
3325
//
3426
//===----------------------------------------------------------------------===//
3527
36-
3728
// WARNING, this entire header is generated by
3829
// utils/generate_libcxx_cppm_in.py
3930
// DO NOT MODIFY!

0 commit comments

Comments
 (0)