Skip to content

Commit d584628

Browse files
committed
Avoid bikeshedding about the best way to suppress flake8 messages
1 parent 8b56f1c commit d584628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# full list see the documentation:
77
# https://www.sphinx-doc.org/en/master/config
88

9+
import importlib
910
import os
1011
import re
1112
import subprocess
@@ -25,8 +26,7 @@
2526
kitty_src = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
2627
if kitty_src not in sys.path:
2728
sys.path.insert(0, kitty_src)
28-
if True:
29-
from kitty.constants import str_version
29+
str_version = importlib.import_module('kitty.constants').str_version
3030

3131
# config {{{
3232
# -- Project information -----------------------------------------------------

0 commit comments

Comments
 (0)