diff options
author | toonn <toonn@toonn.io> | 2022-02-05 19:31:22 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2022-02-05 19:31:22 +0100 |
commit | 7a5f820e760c7ce2f93e2a5f0e91677b46252ea9 (patch) | |
tree | 6f4130ac9594adda5d6a1dd3fb97e87dc7fcc3ac /doc | |
parent | fcd0d50f8b952cc70f65639742cee5e194d84401 (diff) | |
parent | e3c90e2f758ebd94de8cd228d27ef5e1e4cda817 (diff) | |
download | ranger-7a5f820e760c7ce2f93e2a5f0e91677b46252ea9.tar.gz |
Merge branch 'pylint'
Diffstat (limited to 'doc')
-rwxr-xr-x | doc/tools/convert_papermode_to_metadata.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/tools/convert_papermode_to_metadata.py b/doc/tools/convert_papermode_to_metadata.py index 0a1b21ce..58371193 100755 --- a/doc/tools/convert_papermode_to_metadata.py +++ b/doc/tools/convert_papermode_to_metadata.py @@ -39,6 +39,7 @@ def replace(source, target): result = {} # Read the input file and convert it to a dictionary + # pylint: disable=unspecified-encoding with open(".paperinfo", "r") as infile: reader = csv.reader(infile, skipinitialspace=True) for lineno, row in enumerate(reader): @@ -61,6 +62,7 @@ def replace(source, target): if result: # There's no way to specify encoding in 2.x even though in this case we # could choose to write in UTF-8. + # pylint: disable=unspecified-encoding with open(".metadata.json", "w") as outfile: json.dump(result, outfile, indent=2) else: |