We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cbc0db commit a67d37dCopy full SHA for a67d37d
test/pseudo-tty/testcfg.py
@@ -1,4 +1,3 @@
1
-from __future__ import print_function
2
# Copyright 2008 the V8 project authors. All rights reserved.
3
# Redistribution and use in source and binary forms, with or without
4
# modification, are permitted provided that the following conditions are
@@ -26,12 +25,19 @@
26
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+from __future__ import print_function
29
+
30
import test
31
import os
32
from os.path import join, exists, basename, isdir
33
import re
34
import utils
35
36
+try:
37
+ reduce # Python 2
38
+except NameError: # Python 3
39
+ from functools import reduce
40
41
try:
42
xrange # Python 2
43
except NameError:
0 commit comments