diff options
author | Uri Laserson <laserson@cloudera.com> | 2014-05-31 14:59:09 -0700 |
---|---|---|
committer | Matei Zaharia <matei@databricks.com> | 2014-05-31 14:59:09 -0700 |
commit | 5e98967b612ccf026cb1cc5ff3ac8bf72d7e836e (patch) | |
tree | d0b70fa8713defa5227e4c882ae13b1b7357ce67 /python/pyspark/cloudpickle.py | |
parent | d8c005d5371f81a2a06c5d27c7021e1ae43d7193 (diff) | |
download | spark-5e98967b612ccf026cb1cc5ff3ac8bf72d7e836e.tar.gz spark-5e98967b612ccf026cb1cc5ff3ac8bf72d7e836e.tar.bz2 spark-5e98967b612ccf026cb1cc5ff3ac8bf72d7e836e.zip |
SPARK-1917: fix PySpark import of scipy.special functions
https://issues.apache.org/jira/browse/SPARK-1917
Author: Uri Laserson <laserson@cloudera.com>
Closes #866 from laserson/SPARK-1917 and squashes the following commits:
d947e8c [Uri Laserson] Added test for scipy.special importing
1798bbd [Uri Laserson] SPARK-1917: fix PySpark import of scipy.special
Diffstat (limited to 'python/pyspark/cloudpickle.py')
-rw-r--r-- | python/pyspark/cloudpickle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/cloudpickle.py b/python/pyspark/cloudpickle.py index 6a7c23a069..eb5dbb8de2 100644 --- a/python/pyspark/cloudpickle.py +++ b/python/pyspark/cloudpickle.py @@ -933,7 +933,7 @@ def _change_cell_value(cell, newval): Note: These can never be renamed due to client compatibility issues""" def _getobject(modname, attribute): - mod = __import__(modname) + mod = __import__(modname, fromlist=[attribute]) return mod.__dict__[attribute] def _generateImage(size, mode, str_rep): |