We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5597fd commit 0df4eb5Copy full SHA for 0df4eb5
register.py
@@ -3,12 +3,12 @@
3
4
output = pypandoc.convert('README.md', 'rst')
5
f = open('README.txt','w+')
6
-f.write(output.encode('utf-8'))
+f.write(str(output.encode('utf-8')))
7
f.close()
8
9
readme_rst = open('./README.txt').read()
10
replace = '.. figure:: https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png\n :alt: SendGrid Logo\n\n SendGrid Logo\n'
11
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'
12
final_text = readme_rst.replace(replace,replacement)
13
with open('./README.txt', 'w') as f:
14
- f.write(final_text.encode('utf-8'))
+ f.write(final_text)
0 commit comments