Repository: incubator-systemml Updated Branches: refs/heads/master 457bbd3a4 -> 305d84060
SYSTEMML-829 Python API Broken In Python 3 Due To Inclusion Of Tabs In Source File Currently, our Python Api (SystemML.py) does not support Python 3 due to accidental inclusion of tabs into the source file. Both Python 2 and Python 3 heavily discourage the use of any tabs, and Python 3 explicitly does not allow a file to contain both tabs and spaces. Therefore, this fix replaces all tabs with spaces, and we must ensure that any future Python additions *only* include spaces. Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/305d8406 Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/305d8406 Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/305d8406 Branch: refs/heads/master Commit: 305d84060a5453419d4ccaa8b99547b620e98226 Parents: 457bbd3 Author: Mike Dusenberry <[email protected]> Authored: Fri Jul 29 08:49:08 2016 -0700 Committer: Mike Dusenberry <[email protected]> Committed: Fri Jul 29 08:50:15 2016 -0700 ---------------------------------------------------------------------- src/main/java/org/apache/sysml/api/python/SystemML.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/305d8406/src/main/java/org/apache/sysml/api/python/SystemML.py ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/sysml/api/python/SystemML.py b/src/main/java/org/apache/sysml/api/python/SystemML.py index e5d94af..5c656ab 100644 --- a/src/main/java/org/apache/sysml/api/python/SystemML.py +++ b/src/main/java/org/apache/sysml/api/python/SystemML.py @@ -210,7 +210,7 @@ class MLOutput(object): def getBinaryBlockedRDD(self, varName): raise Exception('Not supported in Python MLContext') - #try: + #try: # rdd = RDD(self.jmlOut.getBinaryBlockedRDD(varName), self.sc) # return rdd #except Py4JJavaError: @@ -218,7 +218,7 @@ class MLOutput(object): def getMatrixCharacteristics(self, varName): raise Exception('Not supported in Python MLContext') - #try: + #try: # chars = self.jmlOut.getMatrixCharacteristics(varName) # return chars #except Py4JJavaError: @@ -234,14 +234,14 @@ class MLOutput(object): def getMLMatrix(self, sqlContext, varName): raise Exception('Not supported in Python MLContext') - #try: + #try: # mlm = self.jmlOut.getMLMatrix(sqlContext._scala_SQLContext, varName) # return mlm #except Py4JJavaError: # traceback.print_exc() def getStringRDD(self, varName, format): - raise Exception('Not supported in Python MLContext') + raise Exception('Not supported in Python MLContext') #try: # rdd = RDD(self.jmlOut.getStringRDD(varName, format), self.sc) # return rdd
