gouthambs / Flask-Blogging

A Markdown Based Python Blog Engine as a Flask Extension.
http://flask-blogging.readthedocs.org/en/latest/
MIT License
690 stars 160 forks source link

clarification on code #137

Closed rohitchormale closed 5 years ago

rohitchormale commented 5 years ago

Hay thanks for this great extension. I was checking source and came into this line - https://github.com/gouthambs/Flask-Blogging/blob/700074a769a51e7c39d63753888fa1144e6d5cdd/flask_blogging/engine.py#L153

Out of curiosity, I want to know what is the reason behind defining variable again in method namespace. Any specific reason or just by mistake ?

gouthambs commented 5 years ago

I don't remember why; could mostly by stylistic or for want of not repeating self. in the code.