예제 #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)
예제 #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)
예제 #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)
예제 #4
0
파일: io.py 프로젝트: 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)
예제 #5
0
파일: io.py 프로젝트: 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)
예제 #6
0
파일: io.py 프로젝트: 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)