Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/nbconvert/postprocessors/base.py: 57%

7 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-07-01 06:54 +0000

1""" 

2Basic post processor 

3""" 

4# ----------------------------------------------------------------------------- 

5# Copyright (c) 2013, the IPython Development Team. 

6# 

7# Distributed under the terms of the Modified BSD License. 

8# 

9# The full license is in the file COPYING.txt, distributed with this software. 

10# ----------------------------------------------------------------------------- 

11 

12# ----------------------------------------------------------------------------- 

13# Imports 

14# ----------------------------------------------------------------------------- 

15 

16from nbconvert.utils.base import NbConvertBase 

17 

18 

19# ----------------------------------------------------------------------------- 

20# Classes 

21# ----------------------------------------------------------------------------- 

22class PostProcessorBase(NbConvertBase): 

23 """The base class for post processors.""" 

24 

25 def __call__(self, input_): 

26 """ 

27 See def postprocess() ... 

28 """ 

29 self.postprocess(input_) 

30 

31 def postprocess(self, input_): 

32 """ 

33 Post-process output from a writer. 

34 """ 

35 msg = "postprocess" 

36 raise NotImplementedError(msg)