You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by du...@apache.org on 2016/07/29 16:05:01 UTC

[2/2] incubator-systemml git commit: SYSTEMML-829 Python API Broken In Python 3 Due To Inclusion Of Tabs In Source File

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/c85ebed6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/c85ebed6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/c85ebed6

Branch: refs/heads/branch-0.10
Commit: c85ebed6bd80adf550cc0c4300f5bb3572db8090
Parents: d00f886
Author: Mike Dusenberry <mw...@us.ibm.com>
Authored: Fri Jul 29 08:49:08 2016 -0700
Committer: Mike Dusenberry <mw...@us.ibm.com>
Committed: Fri Jul 29 09:02:31 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/c85ebed6/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