Django

Code

Ticket #4899: make_messages.diff

File make_messages.diff, 0.7 kB (added by Simon G. <dev@simon.net.nz>, 1 year ago)
  • django/bin/make-messages.py

    old new  
    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