Related eBooks

I have a pull request thats struggling to get past linting.

Python's open(...) seems to be used to open text files without explicitly specifying encoding='utf8':

test/functional/        with open(
Success: no issues found in 251 source files
^---- failure generated from

Running the linter locally doesn’t trigger the error warning.

The only place I use open is in the functional test

with open(
             os.path.join(self.nodes[0].datadir, "bitcoin.conf"), "a", encoding="utf8"
         ) as conf:

         with open(inc_conf_file_path, "w", encoding="utf8") as conf:

I’m running


with my file staged in git.


By pplny

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

Translate »