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.
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 @@
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 @@
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 @@
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