Show More
@@ -11,7 +11,7 b' except ImportError:' | |||
|
11 | 11 | # Python <= 3.1: .pyc files go next to .py |
|
12 | 12 | def source_from_cache(path): |
|
13 | 13 | basename, ext = os.path.splitext(path) |
|
14 |
if ext not in |
|
|
14 | if ext not in ('.pyc', '.pyo'): | |
|
15 | 15 | raise ValueError('Not a cached Python file extension', ext) |
|
16 | 16 | # Should we look for .pyw files? |
|
17 | 17 | return basename + '.py' |
General Comments 0
You need to be logged in to leave comments.
Login now