Unverified Commit 69018859 authored by Serge S. Koval's avatar Serge S. Koval Committed by GitHub

Merge pull request #1804 from cclauss/patch-1

Python 3 compatibility in doc/conf.py
parents 280c76b5 a8a303c4
...@@ -256,13 +256,13 @@ intersphinx_mapping = {'http://docs.python.org/': None} ...@@ -256,13 +256,13 @@ intersphinx_mapping = {'http://docs.python.org/': None}
# fall back if theme is not there # fall back if theme is not there
try: try:
__import__('flask_theme_support') __import__('flask_theme_support')
except ImportError, e: except ImportError as e:
print '-' * 74 print('-' * 74)
print 'Warning: Flask themes unavailable. Building with default theme' print('Warning: Flask themes unavailable. Building with default theme')
print 'If you want the Flask themes, run this command and build again:' print('If you want the Flask themes, run this command and build again:')
print print()
print ' git submodule update --init' print(' git submodule update --init')
print '-' * 74 print('-' * 74)
pygments_style = 'tango' pygments_style = 'tango'
html_theme = 'default' html_theme = 'default'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment