From a2171540cbf436644a439e2392645798c165af68 Mon Sep 17 00:00:00 2001 From: Maksym Shalenyi Date: Thu, 23 May 2024 10:48:27 -0700 Subject: [PATCH] change default value for data to None --- src/pycrunch/importing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pycrunch/importing.py b/src/pycrunch/importing.py index 55447fa..9f6c0e0 100644 --- a/src/pycrunch/importing.py +++ b/src/pycrunch/importing.py @@ -53,7 +53,7 @@ def wait_for_batch_status(self, batch, status): raise ValueError("The batch did not reach the '%s' state in the " "given time. Please check again later." % status) - def add_source(self, ds, filename, fp, mimetype, data={}): + def add_source(self, ds, filename, fp, mimetype, data=None): """Create a new Source on the given dataset and return its URL.""" sources_url = ds.user_url.catalogs['sources'] # Don't call Catalog.post here (which would force application/json);