billryan / algorithm-exercise

Data Structure and Algorithm notes. 数据结构与算法/leetcode/lintcode题解/

Home Page:https://algorithm.yuanbin.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Undefined names: ‘title’ and ‘metadata’ in ojhtml2markdown.py

cclauss opened this issue · comments

flake8 testing of https://github.com/billryan/algorithm-exercise on Python 3.7.1

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./scripts/ojhtml2markdown.py:22:26: F821 undefined name 'title'
        content = '# ' + title
                         ^
./scripts/ojhtml2markdown.py:23:36: F821 undefined name 'metadata'
        yaml_content = YamlContent(metadata, content)
                                   ^
2     F821 undefined name 'title'
2

fixed.