Ticket #4899: make_messages.diff
File make_messages.diff, 750 bytes (added by , 17 years ago) |
---|
-
django/bin/make-messages.py
78 78 for file in filenames: 79 79 if domain == 'djangojs' and file.endswith('.js'): 80 80 if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath)) 81 src = open(os.path.join(dirpath, file), "rb ").read()81 src = open(os.path.join(dirpath, file), "rbU").read() 82 82 src = pythonize_re.sub('\n#', src) 83 83 open(os.path.join(dirpath, '%s.py' % file), "wb").write(src) 84 84 thefile = '%s.py' % file