Skip to content

Commit

Permalink
Merge pull request #5 from davidcl/fix-with-python3
Browse files Browse the repository at this point in the history
Fix with python 3.9
  • Loading branch information
sylvestre authored Jun 14, 2024
2 parents f476b7b + 5d32b65 commit cfcafa8
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 24 deletions.
6 changes: 4 additions & 2 deletions classRepresentation/methodGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from parameterGiws import parameterGiws
from classRepresentation.parameterGiws import parameterGiws
from JNIFrameWork import JNIFrameWork
from datatypes.dataGiws import dataGiws
from datatypes.stringDataGiws import stringDataGiws
Expand All @@ -54,7 +54,7 @@ def __init__(self, name, returns, detachThread, modifier=None):
if isinstance(returns, dataGiws):
self.__returns = returns
else:
raise Exception("The type must be a dataGiws object")
raise Exception("The return type must be a dataGiws object")
self.__parameters = []
if detachThread:
self.__detachThread = "\njvm_->DetachCurrentThread();\n"
Expand All @@ -63,6 +63,8 @@ def __init__(self, name, returns, detachThread, modifier=None):
def addParameter(self, parameter):
if isinstance(parameter, parameterGiws):
self.__parameters.append(parameter)
else:
raise Exception("The parameter type must be a parameterGiws object")

def getName(self):
return self.__name
Expand Down
4 changes: 3 additions & 1 deletion classRepresentation/objectGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from methodGiws import methodGiws
from classRepresentation.methodGiws import methodGiws
from JNIFrameWork import JNIFrameWork
from datatypes.stringDataGiws import stringDataGiws
from configGiws import configGiws
Expand All @@ -59,6 +59,8 @@ def __init__(self, name, extends):
def addMethod(self, method):
if isinstance(method, methodGiws):
self.__methods.append(method)
else:
raise Exception("The method must be a methodGiws object")

def getName(self):
return self.__name
Expand Down
5 changes: 4 additions & 1 deletion classRepresentation/packageGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from objectGiws import objectGiws
from classRepresentation.objectGiws import objectGiws


class packageGiws:
Expand All @@ -60,6 +60,9 @@ def getObjects(self):
def addObject(self, object):
if isinstance(object, objectGiws):
self.__objects.append(object)
else:
raise Exception("cannot add a non GIWS object")


def getObject(self, name):
for object in self.__objects:
Expand Down
2 changes: 1 addition & 1 deletion datatypes/ByteBufferDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataBufferGiws import dataBufferGiws
from datatypes.dataBufferGiws import dataBufferGiws
from configGiws import configGiws
from JNIFrameWork import JNIFrameWork

Expand Down
2 changes: 1 addition & 1 deletion datatypes/CharBufferDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataBufferGiws import dataBufferGiws
from datatypes.dataBufferGiws import dataBufferGiws
from configGiws import configGiws
from JNIFrameWork import JNIFrameWork

Expand Down
2 changes: 1 addition & 1 deletion datatypes/DoubleBufferDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataBufferGiws import dataBufferGiws
from datatypes.dataBufferGiws import dataBufferGiws
from configGiws import configGiws
from JNIFrameWork import JNIFrameWork

Expand Down
2 changes: 1 addition & 1 deletion datatypes/FloatBufferDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataBufferGiws import dataBufferGiws
from datatypes.dataBufferGiws import dataBufferGiws
from configGiws import configGiws
from JNIFrameWork import JNIFrameWork

Expand Down
2 changes: 1 addition & 1 deletion datatypes/IntBufferDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataBufferGiws import dataBufferGiws
from datatypes.dataBufferGiws import dataBufferGiws
from configGiws import configGiws
from JNIFrameWork import JNIFrameWork

Expand Down
2 changes: 1 addition & 1 deletion datatypes/LongBufferDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataBufferGiws import dataBufferGiws
from datatypes.dataBufferGiws import dataBufferGiws
from configGiws import configGiws
from JNIFrameWork import JNIFrameWork

Expand Down
2 changes: 1 addition & 1 deletion datatypes/ShortBufferDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataBufferGiws import dataBufferGiws
from datatypes.dataBufferGiws import dataBufferGiws
from configGiws import configGiws
from JNIFrameWork import JNIFrameWork

Expand Down
2 changes: 1 addition & 1 deletion datatypes/booleanDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws
from JNIFrameWork import JNIFrameWork
from configGiws import configGiws

Expand Down
2 changes: 1 addition & 1 deletion datatypes/byteDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws


class byteDataGiws(dataGiws):
Expand Down
2 changes: 1 addition & 1 deletion datatypes/charDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws


class charDataGiws(dataGiws):
Expand Down
2 changes: 1 addition & 1 deletion datatypes/dataBufferGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws
from configGiws import configGiws
from JNIFrameWork import JNIFrameWork

Expand Down
1 change: 0 additions & 1 deletion datatypes/dataFactoryGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
from datatypes.IntBufferDataGiws import IntBufferDataGiws
from datatypes.ShortBufferDataGiws import ShortBufferDataGiws
import datatypes
import new

""" Factory which create the different data types """

Expand Down
2 changes: 1 addition & 1 deletion datatypes/doubleDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws


class doubleDataGiws(dataGiws):
Expand Down
2 changes: 1 addition & 1 deletion datatypes/floatDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws


class floatDataGiws(dataGiws):
Expand Down
2 changes: 1 addition & 1 deletion datatypes/intDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws


class intDataGiws(dataGiws):
Expand Down
2 changes: 1 addition & 1 deletion datatypes/longDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws


class longDataGiws(dataGiws):
Expand Down
2 changes: 1 addition & 1 deletion datatypes/shortDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws


class shortDataGiws(dataGiws):
Expand Down
2 changes: 1 addition & 1 deletion datatypes/stringDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws
from configGiws import configGiws
from JNIFrameWork import JNIFrameWork

Expand Down
2 changes: 1 addition & 1 deletion datatypes/voidDataGiws.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# For more information, see the file COPYING

from dataGiws import dataGiws
from datatypes.dataGiws import dataGiws


class voidDataGiws(dataGiws):
Expand Down
2 changes: 1 addition & 1 deletion giws
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class giws:
templateObj = None
def __init__(self, argv=sys.argv):
self.argv = argv
self.config.setFullCommandLine(argv[1:])
self.config.setFullCommandLine(argv[1:])

try:
self.__parse_cmdline()
Expand Down

0 comments on commit cfcafa8

Please sign in to comment.