Message104139
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 |
|
Date |
User |
Action |
Args |
2010-04-25 01:33:57 | Arfrever | set | recipients:
+ Arfrever, barry |
2010-04-25 01:33:56 | Arfrever | set | messageid: <1272159236.82.0.290282900197.issue8527@psf.upfronthosting.co.za> |
2010-04-25 01:33:54 | Arfrever | link | issue8527 messages |
2010-04-25 01:33:54 | Arfrever | create | |
|