Django

Code

Ticket #4899: mamesswin.diff

File mamesswin.diff, 0.6 kB (added by Koen Biermans, 1 year ago)

Removing chr(13) from msgs

  • make-messages.py

    old new  
    117117                        old = '#: '+os.path.join(dirpath, thefile)[2:] 
    118118                        new = '#: '+os.path.join(dirpath, file)[2:] 
    119119                        msgs = msgs.replace(old, new) 
     120                    msgs = msgs.replace(chr(13), '') 
    120121                    if os.path.exists(potfile): 
    121122                        # Strip the header 
    122123                        msgs = '\n'.join(dropwhile(len, msgs.split('\n')))