From 0c2eeb95d99c007cc8980cbf34c355aefdc9f26f Mon Sep 17 00:00:00 2001
From: Amir Mohammadi <183.amir@gmail.com>
Date: Mon, 3 Oct 2016 17:35:24 +0200
Subject: [PATCH] Make sure default value is not a pointer

---
 bob/bio/base/preprocessor/Preprocessor.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bob/bio/base/preprocessor/Preprocessor.py b/bob/bio/base/preprocessor/Preprocessor.py
index 4ab8de66..1ee0e484 100644
--- a/bob/bio/base/preprocessor/Preprocessor.py
+++ b/bob/bio/base/preprocessor/Preprocessor.py
@@ -23,10 +23,12 @@ class Preprocessor:
       A list of keyword arguments to be written in the `__str__` function.
     """
 
-    def __init__(self, writes_data=True, read_original_data=utils.read_original_data, **kwargs):
+    def __init__(self, writes_data=True, read_original_data=None, **kwargs):
         # Each class needs to have a constructor taking
         # all the parameters that are required for the preprocessing as arguments
         self.writes_data = writes_data
+        if read_original_data is None:
+            read_original_data = utils.read_original_data
         self.read_original_data = read_original_data
         self._kwargs = kwargs
         pass
-- 
GitLab