Esempio n. 1
0
    def __init__(self, app, env, *args, **kwds):
        # type: (Sphinx, BuildEnvironment, Any, Any) -> None
        self.app = app
        self.env = env

        # set up error handler
        codecs.register_error('sphinx', self.warn_and_replace)  # type: ignore

        kwds['error_handler'] = 'sphinx'  # py3: handle error on open.
        FileInput.__init__(self, *args, **kwds)
Esempio n. 2
0
    def __init__(self, app, env, *args, **kwds):
        # type: (Sphinx, BuildEnvironment, Any, Any) -> None
        self.app = app
        self.env = env

        # set up error handler
        codecs.register_error('sphinx', self.warn_and_replace)  # type: ignore

        kwds['error_handler'] = 'sphinx'  # py3: handle error on open.
        FileInput.__init__(self, *args, **kwds)
Esempio n. 3
0
 def __init__(self, app, env, *args, **kwds):
     self.app = app
     self.env = env
     kwds['error_handler'] = 'sphinx'  # py3: handle error on open.
     FileInput.__init__(self, *args, **kwds)
Esempio n. 4
0
File: io.py Progetto: Anlim/sphinx
 def __init__(self, app, env, *args, **kwds):
     self.app = app
     self.env = env
     kwds['error_handler'] = 'sphinx'  # py3: handle error on open.
     FileInput.__init__(self, *args, **kwds)
Esempio n. 5
0
File: io.py Progetto: ezc/sphinx-1
 def __init__(self, app, env, *args, **kwds):
     # type: (Sphinx, BuildEnvironment, Any, Any) -> None
     self.app = app
     self.env = env
     kwds['error_handler'] = 'sphinx'  # py3: handle error on open.
     FileInput.__init__(self, *args, **kwds)
Esempio n. 6
0
File: io.py Progetto: hagenw/sphinx
 def __init__(self, app, env, *args, **kwds):
     # type: (Sphinx, BuildEnvironment, Any, Any) -> None
     self.app = app
     self.env = env
     kwds['error_handler'] = 'sphinx'  # py3: handle error on open.
     FileInput.__init__(self, *args, **kwds)