mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Replace all "unicode" type by "str"
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
if False:
|
||||
# For type annotation
|
||||
from typing import Any # NOQA
|
||||
from sphinx.util.typing import unicode # NOQA
|
||||
|
||||
|
||||
class SphinxError(Exception):
|
||||
@@ -54,7 +53,7 @@ class ExtensionError(SphinxError):
|
||||
category = 'Extension error'
|
||||
|
||||
def __init__(self, message, orig_exc=None):
|
||||
# type: (unicode, Exception) -> None
|
||||
# type: (str, Exception) -> None
|
||||
super(ExtensionError, self).__init__(message)
|
||||
self.message = message
|
||||
self.orig_exc = orig_exc
|
||||
|
||||
Reference in New Issue
Block a user