diff piecrust/rendering.py @ 979:45ad976712ec

tests: Big push to get the tests to pass again. - Lots of fixes everywhere in the code. - Try to handle debug logging in the multiprocessing worker pool when running in pytest. Not perfect, but usable for now. - Replace all `.md` test files with `.html` since now a auto-format extension always sets the format. - Replace `out` with `outfiles` in most places since now blog archives are added to the bake output and I don't want to add expected outputs for blog archives everywhere.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 29 Oct 2017 22:51:57 -0700
parents 1bb704434ee2
children 8adc27285d93
line wrap: on
line diff
--- a/piecrust/rendering.py	Sun Oct 29 22:46:41 2017 -0700
+++ b/piecrust/rendering.py	Sun Oct 29 22:51:57 2017 -0700
@@ -70,9 +70,7 @@
     def setCustomInfo(self, key, info):
         self._custom_info[key] = info
 
-    def getCustomInfo(self, key, default=None, create_if_missing=False):
-        if create_if_missing:
-            return self._custom_info.setdefault(key, default)
+    def getCustomInfo(self, key, default=None):
         return self._custom_info.get(key, default)