File size: 249 Bytes
c26139d
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
with open('README.md', 'r', encoding='utf-8') as f:
    content = f.read()

# Replace the mangled ?? with the rocket emoji
content = content.replace('emoji: ??', 'emoji: ??')

with open('README.md', 'w', encoding='utf-8') as f:
    f.write(content)