Skip to content

Commit a1009de

Browse files
committed
check for Python 3.3 capability, update Api docstring for BIMserver 1.5
1 parent 41ec567 commit a1009de

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bimserver.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
import urllib.request
1010
urlopen = urllib.request.urlopen
1111

12-
try:
13-
inspect.signature(Api.minimumBimServerVersion)
14-
canInspectSignature = True
15-
except AttributeError:
16-
canInspectSignature = False
1712

1813
class Api:
1914
"""
@@ -24,7 +19,7 @@ class Api:
2419
Example:
2520
import bimserver
2621
client = bimserver.Api(server_address, username, password)
27-
client.Bimsie1ServiceInterface.addProject(projectName="My new project")
22+
client.ServiceInterface.addProject(projectName="My new project")
2823
"""
2924

3025
token = None
@@ -120,3 +115,8 @@ def __dir__(self):
120115
class BimserverException(Exception):
121116
pass
122117

118+
try:
119+
inspect.signature(Api.minimumBimServerVersion)
120+
canInspectSignature = True
121+
except AttributeError:
122+
canInspectSignature = False

0 commit comments

Comments
 (0)