Make is_package a function and call it consistently

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

No files matched your search

+1
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