Make is_package a function and call it consistently

This commit is contained in:
Dave Halter
2019-12-01 19:31:31 +01:00
parent 6ffeea7eea
commit 8a26a23884
7 changed files with 19 additions and 10 deletions

View File

@@ -89,6 +89,7 @@ class CompiledObject(Value):
return None
return map(cast_path, paths)
@property
def is_package(self):
return self.py__path__() is not None