From 69c8f2b5bd8744385a641de5f9b3684b103a5c96 Mon Sep 17 00:00:00 2001 From: naufraghi Date: Fri, 21 Dec 2007 19:18:57 +0000 Subject: [PATCH] Add recent python compatibility git-svn-id: http://svn.pyinstaller.org/trunk@399 8dd32b29-ccff-0310-8a9a-9233e24343b1 --- buildtests/test5.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildtests/test5.py b/buildtests/test5.py index 64a0660..35290c4 100644 --- a/buildtests/test5.py +++ b/buildtests/test5.py @@ -15,5 +15,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA print "test5 - W ignore" -import regex +try: + import regex +except ImportError: + import re print "test5 - done"