Skip to content

Commit f578ad7

Browse files
committed
pass testbed
1 parent 75c2d45 commit f578ad7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cocoa/src/toga_cocoa/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import importlib
22
from pathlib import Path
33

4-
import travertino
4+
from travertino import _package_version
55

66

77
def lazy_load():
@@ -32,4 +32,4 @@ def __getattr__(name):
3232
return value
3333

3434

35-
__version__ = travertino._package_version(__file__, __name__)
35+
__version__ = _package_version(__file__, __name__)

core/src/toga/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def lazy_load():
1111
with pyi.open() as f:
1212
for line in f:
1313
segments = line.split()
14-
if segments[0] == "from":
14+
if segments and segments[0] == "from":
1515
toga_core_imports[segments[3]] = segments[1]
1616
return toga_core_imports
1717

0 commit comments

Comments
 (0)