Skip to content

Commit 0df4eb5

Browse files
Update README script for Python 3.6
1 parent f5597fd commit 0df4eb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

register.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
output = pypandoc.convert('README.md', 'rst')
55
f = open('README.txt','w+')
6-
f.write(output.encode('utf-8'))
6+
f.write(str(output.encode('utf-8')))
77
f.close()
88

99
readme_rst = open('./README.txt').read()
1010
replace = '.. figure:: https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png\n :alt: SendGrid Logo\n\n SendGrid Logo\n'
1111
replacement = '|SendGrid Logo|\n\n.. |SendGrid Logo| image:: https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png\n :target: https://www.sendgrid.com'
1212
final_text = readme_rst.replace(replace,replacement)
1313
with open('./README.txt', 'w') as f:
14-
f.write(final_text.encode('utf-8'))
14+
f.write(final_text)

0 commit comments

Comments
 (0)