summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/bsp/engine.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py
index f75454d4b4..5b4948635e 100644
--- a/scripts/lib/bsp/engine.py
+++ b/scripts/lib/bsp/engine.py
@@ -40,12 +40,11 @@ import json
40import subprocess 40import subprocess
41import shutil 41import shutil
42 42
43class Line(): 43class Line(metaclass=ABCMeta):
44 """ 44 """
45 Generic (abstract) container representing a line that will appear 45 Generic (abstract) container representing a line that will appear
46 in the BSP-generating program. 46 in the BSP-generating program.
47 """ 47 """
48 __metaclass__ = ABCMeta
49 48
50 def __init__(self, line): 49 def __init__(self, line):
51 self.line = line 50 self.line = line
@@ -319,11 +318,10 @@ class BooleanInputLine(InputLine):
319 return line 318 return line
320 319
321 320
322class ListInputLine(InputLine): 321class ListInputLine(InputLine, metaclass=ABCMeta):
323 """ 322 """
324 Base class for List-based Input lines. e.g. Choicelist, Checklist. 323 Base class for List-based Input lines. e.g. Choicelist, Checklist.
325 """ 324 """
326 __metaclass__ = ABCMeta
327 325
328 def __init__(self, props, tag, lineno): 326 def __init__(self, props, tag, lineno):
329 InputLine.__init__(self, props, tag, lineno) 327 InputLine.__init__(self, props, tag, lineno)