Skip to content
Snippets Groups Projects
Commit fa3527a6 authored by Gabriel Mazetto's avatar Gabriel Mazetto
Browse files

Makes rest2html work in both python2 and python3

parent 37dcc640
No related branches found
No related tags found
1 merge request!2Python3 support
Loading
Loading
@@ -31,9 +31,11 @@ import sys
import os
 
# This fixes docutils failing with unicode parameters to CSV-Table. The -S
# switch and the following 2 lines can be removed after upgrading to python 3.
reload(sys)
sys.setdefaultencoding('utf-8')
# switch and the following 3 lines can be removed after upgrading to python 3.
if sys.version_info[0] < 3:
reload(sys)
sys.setdefaultencoding('utf-8')
import site
 
try:
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment