More Python 2 to Python 3 upgrades

This commit is contained in:
Dion Moult
2024-05-07 16:03:07 +10:00
parent 26434f0331
commit 0a3dddef2f
5 changed files with 5 additions and 5 deletions
@@ -100,7 +100,7 @@ for nm in ifcopenshell_wrapper.schema_names():
register_schema_attributes(schema)
class entity_instance(object):
class entity_instance:
"""Base class for all IFC objects.
An instantiated entity_instance will have methods of Python and the IFC class itself.
@@ -29,7 +29,7 @@ def indent(n, s):
return "\n".join(" "*n + l for l in splitted)
class Base(object):
class Base:
"""
A base class for all code generation classes. Currently only working around
some python 2/3 incompatibilities in terms of unicode file handling.
+1 -1
View File
@@ -176,7 +176,7 @@ class Transaction:
file_dict = {}
class file(object):
class file:
"""Base class for containing IFC files.
Class has instance methods for filtering by element Id, Type, etc.
@@ -122,7 +122,7 @@ class geometry_creation_thread(QtCore.QThread):
self.signals.completed.emit((it, self.f, list(_())))
class configuration(object):
class configuration:
def __init__(self):
try:
import ConfigParser
@@ -45,7 +45,7 @@ except BaseException:
CodeEdit = QtWidgets.QPlainTextEdit
class StdoutRedirector(object):
class StdoutRedirector:
"""A class for redirecting stdout to this Text widget."""
def __init__(self, widget):