Code

Ticket #4899: make_messages.diff

File make_messages.diff, 750 bytes (added by Simon G. <dev@…>, 7 years ago)
Line 
1Index: django/bin/make-messages.py
2===================================================================
3--- django/bin/make-messages.py (revision 5724)
4+++ django/bin/make-messages.py (working copy)
5@@ -78,7 +78,7 @@
6             for file in filenames:
7                 if domain == 'djangojs' and file.endswith('.js'):
8                     if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath))
9-                    src = open(os.path.join(dirpath, file), "rb").read()
10+                    src = open(os.path.join(dirpath, file), "rbU").read()
11                     src = pythonize_re.sub('\n#', src)
12                     open(os.path.join(dirpath, '%s.py' % file), "wb").write(src)
13                     thefile = '%s.py' % file