Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
paolo@tk:~/$ hg diff
diff --git a/lib-python/2.7/ b/Lib/
rename from lib-python/2.7/
rename to Lib/
--- a/lib-python/2.7/
+++ b/Lib/
@@ -86,7 +86,7 @@
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 =
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.