mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
More Python 2 to Python 3 upgrades
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user