Skip to content

Commit 4d75502

Browse files
committed
pass testbed
1 parent 75c2d45 commit 4d75502

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cocoa/src/toga_cocoa/__init__.py

Lines changed: 3 additions & 3 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():
@@ -10,7 +10,7 @@ def lazy_load():
1010
with pyi.open() as f:
1111
for line in f:
1212
segments = line.split()
13-
if segments[0] == "from":
13+
if segments and segments[0] == "from":
1414
toga_cocoa_imports[segments[3]] = segments[1]
1515
return toga_cocoa_imports
1616

@@ -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__)

0 commit comments

Comments
 (0)