mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
committed by
Thomas Krijnen
parent
d14d63dd5c
commit
c38ac108cc
@@ -23,6 +23,13 @@ import functools
|
|||||||
from . import ifcopenshell_wrapper
|
from . import ifcopenshell_wrapper
|
||||||
from .entity_instance import entity_instance
|
from .entity_instance import entity_instance
|
||||||
|
|
||||||
|
try:
|
||||||
|
# Python 2
|
||||||
|
basestring
|
||||||
|
except NameError:
|
||||||
|
# Python 3 or newer
|
||||||
|
basestring = (str, bytes)
|
||||||
|
|
||||||
class file(object):
|
class file(object):
|
||||||
def __init__(self, f=None):
|
def __init__(self, f=None):
|
||||||
self.wrapped_data = f or ifcopenshell_wrapper.file()
|
self.wrapped_data = f or ifcopenshell_wrapper.file()
|
||||||
|
|||||||
Reference in New Issue
Block a user