Skip to content

Commit 6901885

Browse files
authored
Merge pull request pallets-eco#1804 from cclauss/patch-1
Python 3 compatibility in doc/conf.py
2 parents 280c76b + a8a303c commit 6901885

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@
256256
# fall back if theme is not there
257257
try:
258258
__import__('flask_theme_support')
259-
except ImportError, e:
260-
print '-' * 74
261-
print 'Warning: Flask themes unavailable. Building with default theme'
262-
print 'If you want the Flask themes, run this command and build again:'
263-
print
264-
print ' git submodule update --init'
265-
print '-' * 74
259+
except ImportError as e:
260+
print('-' * 74)
261+
print('Warning: Flask themes unavailable. Building with default theme')
262+
print('If you want the Flask themes, run this command and build again:')
263+
print()
264+
print(' git submodule update --init')
265+
print('-' * 74)
266266

267267
pygments_style = 'tango'
268268
html_theme = 'default'

0 commit comments

Comments
 (0)