We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c2d45 commit 4d75502Copy full SHA for 4d75502
cocoa/src/toga_cocoa/__init__.py
@@ -1,7 +1,7 @@
1
import importlib
2
from pathlib import Path
3
4
-import travertino
+from travertino import _package_version
5
6
7
def lazy_load():
@@ -10,7 +10,7 @@ def lazy_load():
10
with pyi.open() as f:
11
for line in f:
12
segments = line.split()
13
- if segments[0] == "from":
+ if segments and segments[0] == "from":
14
toga_cocoa_imports[segments[3]] = segments[1]
15
return toga_cocoa_imports
16
@@ -32,4 +32,4 @@ def __getattr__(name):
32
return value
33
34
35
-__version__ = travertino._package_version(__file__, __name__)
+__version__ = _package_version(__file__, __name__)
0 commit comments