Skip to content

Commit 1798bbd

Browse files
committed
SPARK-1917: fix PySpark import of scipy.special
1 parent b2bdd0e commit 1798bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/cloudpickle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ def _change_cell_value(cell, newval):
933933
Note: These can never be renamed due to client compatibility issues"""
934934

935935
def _getobject(modname, attribute):
936-
mod = __import__(modname)
936+
mod = __import__(modname, fromlist=[attribute])
937937
return mod.__dict__[attribute]
938938

939939
def _generateImage(size, mode, str_rep):

0 commit comments

Comments
 (0)