A few python3 fixes.
- Fix one implicit relative import. - Fix call to file builtin in test_env. - Fix deprecated lambda syntax.
This commit is contained in:
parent
cac73d251c
commit
d758df2ac9
@ -12,12 +12,14 @@ else:
|
|||||||
import configparser
|
import configparser
|
||||||
ustr = str
|
ustr = str
|
||||||
uchr = chr
|
uchr = chr
|
||||||
|
file = None
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
from http.client import HTTPConnection
|
from http.client import HTTPConnection
|
||||||
|
|
||||||
configparser = configparser
|
configparser = configparser
|
||||||
input = input
|
input = input
|
||||||
|
file = file
|
||||||
|
|
||||||
|
|
||||||
def isbasestr(obj):
|
def isbasestr(obj):
|
||||||
|
@ -1 +1 @@
|
|||||||
from str_templates import *
|
from . str_templates import *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user