Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwwWayne authored May 13, 2021
1 parent 59a2b95 commit 7fe987f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmcv/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Config:
@staticmethod
def _validate_py_syntax(filename):
with open(filename, 'r', encoding='utf-8') as f:
# Setting encoding explicitly help resolve some coding issue on windows
# Setting encoding explicitly to resolve coding issue on windows
content = f.read()
try:
ast.parse(content)
Expand All @@ -111,7 +111,7 @@ def _substitute_predefined_vars(filename, temp_config_name):
fileBasenameNoExtension=file_basename_no_extension,
fileExtname=file_extname)
with open(filename, 'r', encoding='utf-8') as f:
# Setting encoding explicitly help resolve some coding issue on windows
# Setting encoding explicitly to resolve coding issue on windows
config_file = f.read()
for key, value in support_templates.items():
regexp = r'\{\{\s*' + str(key) + r'\s*\}\}'
Expand Down

0 comments on commit 7fe987f

Please # to comment.