Skip to content

Commit b42a909

Browse files
committed
python SCL standardise all class declarations (remove object base)
1 parent dace0f7 commit b42a909

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/exp2python/python/SCL/AggregationDataTypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from TypeChecker import check_type
3434
import BaseType
3535

36-
class BaseAggregate(object):
36+
class BaseAggregate:
3737
""" A class that define common properties to ARRAY, LIST, SET and BAG.
3838
"""
3939
def __init__( self , bound1 , bound2 , base_type ):

src/exp2python/python/SCL/BaseType.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3030
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131

32-
class Type(object):
32+
class Type:
3333
'''
3434
A type can be defined from its name and scope
3535
Looking into the scope dict returns the python type class.

src/exp2python/python/SCL/ConstructedDataTypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ENUMERATION(Enum):
5858
"""
5959
pass
6060

61-
class SELECT(object):
61+
class SELECT:
6262
""" A select data type has as its domain the union of the domains of the named data types in
6363
its select list. The select data type is a generalization of each of the named data types in its
6464
select list.

src/exp2python/python/SCL/Model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3030
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131

32-
class Model(object):
32+
class Model:
3333
""" The container for entity instances
3434
"""
3535
def __init_(self):

src/exp2python/python/SCL/Part21.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
####################################################################################################
5454
# Lexer
5555
####################################################################################################
56-
class Lexer(object):
56+
class Lexer:
5757
tokens = list(base_tokens)
5858
states = (('slurp', 'exclusive'),)
5959

@@ -239,7 +239,7 @@ def __init__(self, type_name, *params):
239239
####################################################################################################
240240
# Parser
241241
####################################################################################################
242-
class Parser(object):
242+
class Parser:
243243
tokens = list(base_tokens)
244244
start = 'exchange_file'
245245

src/exp2python/python/SCL/Rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
__doc__ = "This module defines EXPRESS rules"
3333

34-
class Rule(object):
34+
class Rule:
3535
'''
3636
This class describes a RULE
3737
@TODO: to be implemented

src/exp2python/python/SCL/SCLBase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3030
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131

32-
class BaseEntityClass(object):
32+
class BaseEntityClass:
3333
""" A class that allows advanced __repr__ features for entity instances
3434
"""
3535
def __repr__(self):

0 commit comments

Comments
 (0)