about summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2022-02-05 19:29:58 +0100
committertoonn <toonn@toonn.io>2022-02-05 19:29:58 +0100
commit796fd9c36750047949d1b22bd71bfbe2586a5717 (patch)
treea72c79ef24d239b28c2d63f5ee7ad8ec8358f00f /doc
parent0b9a9854d303ee2041ce32ee9b1073e5db73a973 (diff)
downloadranger-796fd9c36750047949d1b22bd71bfbe2586a5717.tar.gz
Revert "convert_papermode_to_metadata: Drop disappeared Pylint options"
This reverts commit 8372a7602d93eb7fc3d18c8ac071ea9cd6349501.
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/tools/convert_papermode_to_metadata.py2
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: