Skip to content
Permalink
Browse files

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

PR-URL: #24887
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information...
cclauss authored and BethGriggs committed Dec 7, 2018
1 parent 16a75be commit bc71e9e0d6f6ccd16df07cfb0d82125e116bb7e8
Showing with 7 additions and 1 deletion.
  1. +7 −1 test/pseudo-tty/testcfg.py
@@ -1,4 +1,3 @@
from __future__ import print_function
# Copyright 2008 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
@@ -26,12 +25,19 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from __future__ import print_function

import test
import os
from os.path import join, exists, basename, isdir
import re
import utils

try:
reduce # Python 2
except NameError: # Python 3
from functools import reduce

try:
xrange # Python 2
except NameError:

0 comments on commit bc71e9e

Please sign in to comment.
You can’t perform that action at this time.