]> granicus.if.org Git - python/commitdiff
Try to get hg to treat importlib.h as binary.
authorBrett Cannon <brett@python.org>
Sun, 15 Apr 2012 23:05:31 +0000 (19:05 -0400)
committerBrett Cannon <brett@python.org>
Sun, 15 Apr 2012 23:05:31 +0000 (19:05 -0400)
Python/freeze_importlib.py
Python/importlib.h

index a069a0b4d2067688876088ee752f1fa35573677c..9cce0b1e7a45c92ba18be096dd6927d327502447 100644 (file)
@@ -24,6 +24,7 @@ def main(input_path, output_path):
     lines.append('};\n')
     with open(output_path, 'w') as output_file:
         output_file.write('\n'.join(lines))
+        output_file.write('\u0000')
 
 
 if __name__ == '__main__':
index 698023188bbb2d39cb1752e31d750cfd46c908f2..f11dcbb131c5f7b77075b5d4c0523e52f33a1c6b 100644 (file)
@@ -3107,3 +3107,4 @@ unsigned char _Py_M__importlib[] = {
     13,12,9,12,15,12,17,15,2,6,2,12,41,18,25,12,
     23,12,15,24,34,12,45,
 };
+\0
\ No newline at end of file