From c95504e7383bf697278344d8526d2477e245d0a3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 29 Aug 2009 15:18:21 -0500 Subject: [PATCH] use py.builtin.builtins instead of import test --HG-- branch : trunk --- py/code/assertion.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/py/code/assertion.py b/py/code/assertion.py index b5d2314c8..f3c93c3ca 100644 --- a/py/code/assertion.py +++ b/py/code/assertion.py @@ -1,11 +1,7 @@ -try: - import __builtin__ as builtins -except ImportError: - import builtins import sys import py -BuiltinAssertionError = builtins.AssertionError +BuiltinAssertionError = py.builtin.builtins.AssertionError def _format_explanation(explanation):