Ticket #4899: make_messages.diff

File make_messages.diff, 750 bytes (added by Simon G. <dev@…>, 17 years ago)
  • django/bin/make-messages.py

     
    7878            for file in filenames:
    7979                if domain == 'djangojs' and file.endswith('.js'):
    8080                    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()
    8282                    src = pythonize_re.sub('\n#', src)
    8383                    open(os.path.join(dirpath, '%s.py' % file), "wb").write(src)
    8484                    thefile = '%s.py' % file
Back to Top