Skip to content

Commit d1f430a

Browse files
dwhswensonsroet
andauthored
Apply suggestions from code review
Co-authored-by: Sander Roet <sanderroet@hotmail.com>
1 parent def35eb commit d1f430a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

paths_cli/compiling/_gendocs/config_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def load_config(config_file):
1919
name of YAML or JSON file
2020
"""
2121
loader = select_loader(config_file)
22-
with open(config_file, mode='r') as f:
22+
with open(config_file, mode='r', encoding='utf-8') as f:
2323
dct = loader(f)
2424

2525
result = {category: DocCategoryInfo(**details)

paths_cli/compiling/_gendocs/docs_generator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def generate_category_rst(self, category_plugin):
4949
str :
5050
RST string for this category
5151
"""
52-
# TODO: move type_required to DocCategoryInfo (default True)
5352
cat_info = self._get_cat_info(category_plugin)
5453
type_required = cat_info.type_required
5554
rst = f".. _compiling--{category_plugin.label}:\n\n"

0 commit comments

Comments
 (0)