Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add compression/__init__.py and revert tooling change
  • Loading branch information
emmatyping committed Apr 26, 2025
commit 2e1b2a8ddc718c603aef13969c6bbfa2bdef0f8f
Empty file added Lib/compression/__init__.py
Empty file.
12 changes: 2 additions & 10 deletions Tools/build/generate_stdlib_module_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,8 @@ def list_packages(names):
package_path = os.path.join(STDLIB_PATH, name)
if not os.path.isdir(package_path):
continue
# Walk the package directory to check if the package is a namespace
has_py_files = False
for root, _dirs, files in os.walk(package_path):
for file in files:
if file.endswith(".py"):
has_py_files = True
break
if has_py_files:
break
if has_py_files:
if any(package_file.endswith(".py")
for package_file in os.listdir(package_path)):
names.add(name)


Expand Down