docs: Make Python 3 compatible
This commit is contained in:
parent
50324b505d
commit
775448c792
6 changed files with 7 additions and 7 deletions
|
@ -188,9 +188,9 @@ def sphinx_call(language, target, build_dir, sphinx_parallel_jobs, buildername):
|
||||||
# and sphinx.cmd.build() also does a lot of work in the calling thread, especially for j ==1,
|
# and sphinx.cmd.build() also does a lot of work in the calling thread, especially for j ==1,
|
||||||
# so using a Pyhthon thread for this part is a poor option (GIL)
|
# so using a Pyhthon thread for this part is a poor option (GIL)
|
||||||
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
for c in iter(lambda: p.stdout.readline(), ''):
|
for c in iter(lambda: p.stdout.readline(), b''):
|
||||||
sys.stdout.write(prefix)
|
sys.stdout.write(prefix)
|
||||||
sys.stdout.write(c)
|
sys.stdout.write(c.decode('utf-8'))
|
||||||
ret = p.wait()
|
ret = p.wait()
|
||||||
assert (ret is not None)
|
assert (ret is not None)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# Extension to generate esp_err definition as .rst
|
# Extension to generate esp_err definition as .rst
|
||||||
from util import copy_if_modified, call_with_python
|
from .util import copy_if_modified, call_with_python
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import os.path
|
import os.path
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from util import copy_if_modified
|
from .util import copy_if_modified
|
||||||
|
|
||||||
BASE_URL = 'https://dl.espressif.com/dl/'
|
BASE_URL = 'https://dl.espressif.com/dl/'
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
from io import open
|
from io import open
|
||||||
from util import copy_if_modified
|
from .util import copy_if_modified
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -3,7 +3,7 @@ import os.path
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from util import copy_if_modified
|
from .util import copy_if_modified
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
|
|
|
@ -7,7 +7,7 @@ import os
|
||||||
import os.path
|
import os.path
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
from util import copy_if_modified
|
from .util import copy_if_modified
|
||||||
|
|
||||||
ALL_KINDS = [
|
ALL_KINDS = [
|
||||||
("function", "Functions"),
|
("function", "Functions"),
|
||||||
|
|
Loading…
Reference in a new issue