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 f578ad7Copy full SHA for f578ad7
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():
@@ -32,4 +32,4 @@ def __getattr__(name):
32
return value
33
34
35
-__version__ = travertino._package_version(__file__, __name__)
+__version__ = _package_version(__file__, __name__)
core/src/toga/__init__.py
@@ -11,7 +11,7 @@ def lazy_load():
11
with pyi.open() as f:
12
for line in f:
13
segments = line.split()
14
- if segments[0] == "from":
+ if segments and segments[0] == "from":
15
toga_core_imports[segments[3]] = segments[1]
16
return toga_core_imports
17
0 commit comments