Skip to content

Commit 5da54fc

Browse files
committed
Remove dependency on future
I don't think this is needed now that python_requires is >=3.8.
1 parent df55074 commit 5da54fc

6 files changed

Lines changed: 2 additions & 31 deletions

File tree

OMPython/OMParser/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@
3232
Version: 1.0
3333
"""
3434

35-
from __future__ import absolute_import
36-
from __future__ import division
37-
from __future__ import print_function
38-
from builtins import int, range
39-
4035
import sys
4136

4237
result = dict()

OMPython/OMTypedParser.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
from __future__ import absolute_import
4-
from __future__ import division
5-
from __future__ import print_function
6-
from builtins import int, range
7-
83
__author__ = "Anand Kalaiarasi Ganeson, ganan642@student.liu.se, 2012-03-19, and Martin Sjölund"
94
__license__ = """
105
This file is part of OpenModelica.

OMPython/__init__.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
omc.sendExpression("command")
88
"""
99

10-
from __future__ import absolute_import
11-
from __future__ import division
12-
from __future__ import print_function
13-
from future.utils import with_metaclass
14-
from builtins import int, range
1510
import shutil
16-
1711
import abc
1812
import csv
1913
import getpass
@@ -138,7 +132,7 @@ def _get_omc_path(self):
138132
raise
139133

140134

141-
class OMCSessionBase(with_metaclass(abc.ABCMeta, object)):
135+
class OMCSessionBase(metaclass=abc.ABCMeta):
142136

143137
def __init__(self, readonly=False):
144138
self.readonly = readonly
@@ -652,7 +646,7 @@ class ModelicaSystemError(Exception):
652646
pass
653647

654648

655-
class ModelicaSystem(object):
649+
class ModelicaSystem:
656650
def __init__(self, fileName=None, modelName=None, lmodel=None, commandLineOptions=None,
657651
variableFilter=None, customBuildDirectory=None, verbose=True, raiseerrors=False,
658652
omhome: str = None, session: OMCSessionBase = None): # 1

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
url='http://openmodelica.org/',
1616
packages=OMPython_packages,
1717
install_requires=[
18-
'future',
1918
'numpy',
2019
'psutil',
2120
'pyparsing',

tests/test_OMParser.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
from __future__ import absolute_import
2-
from __future__ import division
3-
from __future__ import print_function
4-
from builtins import int
5-
61
from OMPython import OMParser
7-
82
import unittest
93

104
typeCheck = OMParser.typeCheck

tests/test_typedParser.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
from __future__ import absolute_import
2-
from __future__ import division
3-
from __future__ import print_function
4-
from builtins import int
5-
61
from OMPython import OMTypedParser
7-
82
import unittest
93

104
typeCheck = OMTypedParser.parseString

0 commit comments

Comments
 (0)