Commit 0c2eeb95 authored by Amir Mohammadi's avatar Amir Mohammadi
Browse files

Make sure default value is not a pointer

parent 7c8fc29b
Pipeline #4270 passed with stages
in 94 minutes and 12 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment