Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- line = 'facebook-smiley-face-for-comments.png <smiley symbols>'
- objname = line.split(' ')[0]
- file = open('new-file', 'w')
- file.write('<icon>\n'
- '<text>:)</text>\n'
- '<text>:-)</text>\n'
- '<text>:]</text>\n'
- '<object mime=\'image/png\'>%s</object>\n</icon>'
- % objname)
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement