Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 791a39e

Browse files
gvanrossumddfisher
authored andcommitted
Rename lib-python to stdlib-samples, clarifying its role. (#1480)
* Move lib-python to stdlib-samples, to clarify its role. * Break long line.
1 parent 8b7eea9 commit 791a39e

41 files changed

Lines changed: 8 additions & 7 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ DEALINGS IN THE SOFTWARE.
2727
= = = = =
2828

2929
Portions of mypy are licensed under different licenses. The files
30-
under lib-python and lib-typing/3.2 are licensed under the PSF 2
30+
under stdlib-samples and lib-typing are licensed under the PSF 2
3131
License, reproduced below.
3232

3333
= = = = =

runtests.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,18 +235,19 @@ def add_stubs(driver: Driver) -> None:
235235
driver.add_mypy_modules('stubs', sorted(modules))
236236

237237

238-
def add_libpython(driver: Driver) -> None:
238+
def add_stdlibsamples(driver: Driver) -> None:
239239
seen = set() # type: Set[str]
240240
for version in driver.versions:
241-
libpython_dir = join(driver.cwd, 'lib-python', version)
241+
stdlibsamples_dir = join(driver.cwd, 'stdlib-samples', version)
242242
modules = [] # type: List[str]
243-
for f in find_files(libpython_dir, prefix='test_', suffix='.py'):
244-
module = file_to_module(f[len(libpython_dir) + 1:])
243+
for f in find_files(stdlibsamples_dir, prefix='test_', suffix='.py'):
244+
module = file_to_module(f[len(stdlibsamples_dir) + 1:])
245245
if module not in seen:
246246
seen.add(module)
247247
modules.append(module)
248248
if modules:
249-
driver.add_mypy_modules('libpython (%s)' % (version,), modules, cwd=libpython_dir)
249+
driver.add_mypy_modules('stdlibsamples (%s)' % (version,), modules,
250+
cwd=stdlibsamples_dir)
250251

251252

252253
def add_samples(driver: Driver) -> None:
@@ -369,7 +370,7 @@ def main() -> None:
369370
add_myunit(driver)
370371
add_imports(driver)
371372
add_stubs(driver)
372-
add_libpython(driver)
373+
add_stdlibsamples(driver)
373374
add_samples(driver)
374375

375376
if list_only:
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)