Improve python 3 compatibility for doctest.py
Fix import of urllib. Use "print(" instead of "print (" Change-Id: I3bc6e086c64ed8b84104e4c5bf76f46b932ceb2e
This commit is contained in:
parent
1971dce4f3
commit
7c9c21f5e5
|
@ -36,9 +36,14 @@ import operator
|
|||
import os
|
||||
import re
|
||||
import shutil
|
||||
import six
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
|
||||
if six.PY3:
|
||||
from urllib import request as urllib2
|
||||
else:
|
||||
import urllib2
|
||||
|
||||
from lxml import etree
|
||||
|
|
Loading…
Reference in New Issue