getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.6k stars 445 forks source link

fix(utils): find substring in string instead of using contains #3624

Closed woile closed 2 years ago

woile commented 2 years ago

Closes #3623

Pull Request Checklist

Description

Kwpolska commented 2 years ago

@Woile Please fix the code style warnings reported by flake8:

 nikola/utils.py:1:2: E114 indentation is not a multiple of 4 (comment)
nikola/utils.py:1:2: E116 unexpected indentation (comment)
tests/test_utils.py:645:1: E302 expected 2 blank lines, found 1
tests/test_utils.py:646:69: W292 no newline at end of file
Kwpolska commented 2 years ago

Thanks for contributing this fix!