Commit 628d4d97 authored by Lisandro Dalcin's avatar Lisandro Dalcin

remove duplicate method implementation

parent 666be97c
...@@ -379,11 +379,6 @@ class Context(object): ...@@ -379,11 +379,6 @@ class Context(object):
dir = parent dir = parent
return dir return dir
def is_package_dir(self, dir):
package_init = os.path.join(dir, "__init__.py")
return os.path.exists(package_init) or \
os.path.exists(package_init + "x") # same with .pyx
def check_package_dir(self, dir, package_names): def check_package_dir(self, dir, package_names):
package_dir = os.path.join(dir, *package_names) package_dir = os.path.join(dir, *package_names)
if not os.path.exists(package_dir): if not os.path.exists(package_dir):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment