pylint: enable unspecified-encoding

pull/10889/head
Dylan Baker 2 years ago committed by Eli Schwartz
parent 988a50b19c
commit 8c819ab805
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 1
      .pylintrc
  2. 2
      mesonbuild/scripts/env2mfile.py

@ -76,7 +76,6 @@ disable=
unnecessary-dict-index-lookup,
unnecessary-lambda,
unnecessary-lambda-assignment,
unspecified-encoding,
unsubscriptable-object,
unused-argument,
unused-variable,

@ -193,7 +193,7 @@ def detect_cross_debianlike(options: T.Any) -> MachineInfo:
def write_machine_file(infos: MachineInfo, ofilename: str, write_system_info: bool) -> None:
tmpfilename = ofilename + '~'
with open(tmpfilename, 'w') as ofile:
with open(tmpfilename, 'w', encoding='utf-8') as ofile:
ofile.write('[binaries]\n')
ofile.write('# Compilers\n')
for langname in sorted(infos.compilers.keys()):

Loading…
Cancel
Save