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