diff --git a/python/pyspark/taskcontext.py b/python/pyspark/taskcontext.py index 282db010ea75d..63ae1f30e17ca 100644 --- a/python/pyspark/taskcontext.py +++ b/python/pyspark/taskcontext.py @@ -94,4 +94,4 @@ def getLocalProperty(self, key): """ Get a local property set upstream in the driver, or None if it is missing. """ - return self._localProperties.get(key, default=None) + return self._localProperties.get(key, None)