Commit ef11618f authored by Stefan Behnel's avatar Stefan Behnel

merge

parents e0c8a312 a7eef21b
......@@ -417,7 +417,9 @@ class Context(object):
def is_package_dir(self, dir_path):
# Return true if the given directory is a package directory.
for filename in ("__init__.py", "__init__.pyx"):
for filename in ("__init__.py",
"__init__.pyx",
"__init__.pxd"):
path = os.path.join(dir_path, filename)
if os.path.exists(path):
return 1
......
......@@ -84,7 +84,7 @@ def get_default(dict d, key, default):
def get_in_condition(dict d, key, expected_result):
"""
>>> d = dict(a=1, b=2)
>>> getitem_in_condition(d, 'a', 1)
>>> get_in_condition(d, 'a', 1)
True
"""
return d.get(key) is expected_result
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