Skip to content

Commit 753b295

Browse files
committed
Split names before testing
1 parent 42b51bb commit 753b295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/manage/aliasutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ def replace(self, **kwargs):
6666
@property
6767
def script_code(self):
6868
if self.mod and self.func:
69-
if not self.mod.isidentifier():
69+
if not all(s.isidentifier() for s in self.mod.split(".")):
7070
LOGGER.warn("Alias %s has an entrypoint with invalid module "
7171
"%r.", self.name, self.mod)
7272
return None
73-
if not self.func.isidentifier():
73+
if not all(s.isidentifier() for s in self.func.split(".")):
7474
LOGGER.warn("Alias %s has an entrypoint with invalid function "
7575
"%r.", self.name, self.func)
7676
return None

0 commit comments

Comments
 (0)