Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
paolo@tk:~/$ hg diff
diff --git a/lib-python/2.7/compileall.py b/Lib/compileall.py
rename from lib-python/2.7/compileall.py
rename to Lib/compileall.py
--- a/lib-python/2.7/compileall.py
+++ b/Lib/compileall.py
@@ -86,7 +86,7 @@
try:
mtime = int(os.stat(fullname).st_mtime)
expect = struct.pack('<4sl', imp.get_magic(), mtime)
- cfile = fullname + (__debug__ and 'c' or 'o')
+ cfile = fullname.replace('.py', '$py.class')
with open(cfile, 'rb') as chandle:
actual = chandle.read(8)
if expect == actual:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.