New submission from Arfrever Frehtes Taifersar Arahesis <arfrever....@gmail.com>:
compileall.compile_dir() called multiple times creates empty __pycache__/__pycache__ subdirectories. I'm attaching the patch. $ mkdir test $ touch test/__init__.py $ python3.2 -c 'import compileall; compileall.compile_dir("test")' Listing test ... Compiling test/__init__.py ... $ tree test test ├── __init__.py └── __pycache__ └── __init__.cpython-32.pyc 1 directory, 2 files $ python3.2 -c 'import compileall; compileall.compile_dir("test")' Listing test ... Listing test/__pycache__ ... $ tree test test ├── __init__.py └── __pycache__ ├── __init__.cpython-32.pyc └── __pycache__ 2 directories, 2 files ---------- components: Library (Lib) files: compileall.patch keywords: patch messages: 104139 nosy: Arfrever, barry severity: normal status: open title: [PEP 3147] compileall.compile_dir() called multiple times creates empty __pycache__/__pycache__ subdirectories versions: Python 3.2 Added file: http://bugs.python.org/file17076/compileall.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8527> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com