test: prepare test/pseudo-tty/testcfg.py Python 3

PR-URL: https://github.com/nodejs/node/pull/24887
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
cclauss 2018-12-07 09:30:06 +01:00 committed by Daniel Bevenius
parent 60ce2fd827
commit b337b58146

View File

@ -1,4 +1,3 @@
from __future__ import print_function
# Copyright 2008 the V8 project authors. All rights reserved. # Copyright 2008 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are # modification, are permitted provided that the following conditions are
@ -26,12 +25,19 @@ from __future__ import print_function
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from __future__ import print_function
import test import test
import os import os
from os.path import join, exists, basename, isdir from os.path import join, exists, basename, isdir
import re import re
import utils import utils
try:
reduce # Python 2
except NameError: # Python 3
from functools import reduce
try: try:
xrange # Python 2 xrange # Python 2
except NameError: except NameError: