def has_ns(stmt): with temporary_file(binary_mode=False) as fp: fp.write(stmt) fp.flush() return declares_namespace_package(fp.name)
def has_ns(stmt): with temporary_file(binary_mode=False) as fp: fp.write(stmt) fp.flush() return declares_namespace_package(fp.name)