Skip to content

Commit 0c7e333

Browse files
author
michael-etzkorn
committed
Removed python 2 style class declaration
1 parent 37de2fb commit 0c7e333

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

hdlparse/verilog_parser.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
VerilogLexer = MiniLexer(verilog_tokens)
6060

6161

62-
class VerilogObject(object):
62+
class VerilogObject:
6363
"""Base class for parsed Verilog objects"""
6464

6565
def __init__(self, name, desc=None):
@@ -68,7 +68,7 @@ def __init__(self, name, desc=None):
6868
self.desc = [] if desc is None else desc
6969

7070

71-
class VerilogParameter(object):
71+
class VerilogParameter:
7272
"""Parameter and port to a module"""
7373

7474
def __init__(self, name, mode=None, data_type=None, default_value=None, desc=None):
@@ -229,7 +229,7 @@ def is_verilog(fname):
229229
return os.path.splitext(fname)[1].lower() in ('.vlog', '.v')
230230

231231

232-
class VerilogExtractor(object):
232+
class VerilogExtractor:
233233
"""Utility class that caches parsed objects"""
234234

235235
def __init__(self):

hdlparse/vhdl_parser.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
VhdlLexer = MiniLexer(vhdl_tokens, flags=re.MULTILINE | re.IGNORECASE)
158158

159159

160-
class VhdlObject(object):
160+
class VhdlObject:
161161
"""Base class for parsed VHDL objects
162162
163163
Args:
@@ -171,7 +171,7 @@ def __init__(self, name, desc=None):
171171
self.desc = desc
172172

173173

174-
class VhdlParameter(object):
174+
class VhdlParameter:
175175
"""Parameter to subprograms, ports, and generics
176176
177177
Args:
@@ -207,7 +207,7 @@ def __repr__(self):
207207
self.data_type.name + self.data_type.arange)
208208

209209

210-
class VhdlParameterType(object):
210+
class VhdlParameterType:
211211
"""Parameter type definition
212212
213213
Args:
@@ -684,7 +684,7 @@ def is_vhdl(fname):
684684
return os.path.splitext(fname)[1].lower() in ('.vhdl', '.vhd')
685685

686686

687-
class VhdlExtractor(object):
687+
class VhdlExtractor:
688688
"""Utility class that caches parsed objects and tracks array type definitions
689689
690690
Args:

0 commit comments

Comments
 (0)