Skip to content
Snippets Groups Projects
Commit 3dc3c35c authored by Martin Reinecke's avatar Martin Reinecke
Browse files

futurize changes for Pyton 3 compatibility

parent b2b59354
No related branches found
No related tags found
1 merge request!1futurize changes for Pyton 3 compatibility
...@@ -16,8 +16,9 @@ ...@@ -16,8 +16,9 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import absolute_import
from .version import __version__ from .version import __version__
from comm import * from .comm import *
from datatypes import * from .datatypes import *
from op import * from .op import *
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import
from builtins import object
import inspect import inspect
import copy import copy
import numpy as np import numpy as np
from op import SUM from .op import SUM
__all__ = ['Comm', 'Intracomm', 'COMM_WORLD', 'COMM_SELF'] __all__ = ['Comm', 'Intracomm', 'COMM_WORLD', 'COMM_SELF']
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from builtins import str
from builtins import object
__all__ = ['BYTE', 'SHORT', 'UNSIGNED_SHORT', 'UNSIGNED_INT', 'INT', 'LONG', __all__ = ['BYTE', 'SHORT', 'UNSIGNED_SHORT', 'UNSIGNED_INT', 'INT', 'LONG',
'UNSIGNED_LONG', 'LONG_LONG', 'UNSIGNED_LONG_LONG', 'FLOAT', 'UNSIGNED_LONG', 'LONG_LONG', 'UNSIGNED_LONG_LONG', 'FLOAT',
'DOUBLE', 'LONG_DOUBLE', 'COMPLEX', 'DOUBLE_COMPLEX'] 'DOUBLE', 'LONG_DOUBLE', 'COMPLEX', 'DOUBLE_COMPLEX']
class _datatype(): class _datatype(object):
def __init__(self, name): def __init__(self, name):
self.name = str(name) self.name = str(name)
......
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from builtins import object
class Op(object): class Op(object):
...@@ -13,4 +14,4 @@ PROD = Op() ...@@ -13,4 +14,4 @@ PROD = Op()
LAND = Op() LAND = Op()
LOR = Op() LOR = Op()
BAND = Op() BAND = Op()
BOR = Op() BOR = Op()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment