Skip to content

Commit

Permalink
test: prepare test/testpy/__init__.py for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Dec 12, 2018
1 parent 9a26546 commit dda7ca5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/testpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
import re
import ast

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


FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
FILES_PATTERN = re.compile(r"//\s+Files:(.*)")
Expand Down

0 comments on commit dda7ca5

Please sign in to comment.