diff options
-rw-r--r-- | Lib/py_compile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/py_compile.py b/Lib/py_compile.py index fba7b1d51d..e9e90ff6ef 100644 --- a/Lib/py_compile.py +++ b/Lib/py_compile.py @@ -19,7 +19,7 @@ def compile(file, cfile = None): timestamp = long(os.stat(file)[8]) codeobject = __builtin__.compile(codestring, file, 'exec') if not cfile: - cfile = file + 'c' + cfile = file + (__debug__ and 'c' or 'o') fc = open(cfile, 'wb') fc.write(MAGIC) wr_long(fc, timestamp) |