maxcountryman / flask-seasurf

SeaSurf is a Flask extension for preventing cross-site request forgery (CSRF).
http://readthedocs.org/docs/flask-seasurf/
Other
190 stars 49 forks source link

Fix version parsing in docs #120

Closed alanhamlett closed 2 years ago

alanhamlett commented 2 years ago

Fixes the error when building docs on RTD:

Running Sphinx v1.8.6

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/flask-seasurf/envs/stable/lib/python3.7/site-packages/sphinx/config.py", line 368, in eval_config_file
    execfile_(filename, namespace)
  File "/home/docs/checkouts/readthedocs.org/user_builds/flask-seasurf/envs/stable/lib/python3.7/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
    exec_(code, _globals)
  File "/home/docs/checkouts/readthedocs.org/user_builds/flask-seasurf/checkouts/stable/docs/conf.py", line 53, in <module>
    open(module_path))[0]
TypeError: 'filter' object is not subscriptable