Skip to content

Commit

Permalink
Fix #3353: Fix NameError
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Jan 19, 2017
1 parent 491620e commit 60278c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sphinx/config.py
Expand Up @@ -44,6 +44,9 @@
CONFIG_TYPE_WARNING = "The config value `{name}' has type `{current.__name__}', " \
"defaults to `{default.__name__}'."

if PY3:
unicode = str # special alias for static typing...

ConfigValue = NamedTuple('ConfigValue', [('name', str),
('value', Any),
('rebuild', Union[bool, unicode])])
Expand Down

0 comments on commit 60278c7

Please sign in to comment.