Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit46c7e21

Browse files
committed
Add compression/__init__.py and revert tooling change
1 parente7fed14 commit46c7e21

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

‎Lib/compression/__init__.py

Whitespace-only changes.

‎Tools/build/generate_stdlib_module_names.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
fromcheck_extension_modulesimportModuleChecker
99

10+
1011
SCRIPT_NAME='Tools/build/generate_stdlib_module_names.py'
1112

1213
SRC_DIR=os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
@@ -70,16 +71,8 @@ def list_packages(names):
7071
package_path=os.path.join(STDLIB_PATH,name)
7172
ifnotos.path.isdir(package_path):
7273
continue
73-
# Walk the package directory to check if the package is a namespace
74-
has_py_files=False
75-
forroot,_dirs,filesinos.walk(package_path):
76-
forfileinfiles:
77-
iffile.endswith(".py"):
78-
has_py_files=True
79-
break
80-
ifhas_py_files:
81-
break
82-
ifhas_py_files:
74+
ifany(package_file.endswith(".py")
75+
forpackage_fileinos.listdir(package_path)):
8376
names.add(name)
8477

8578

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp