From ffad76e85b13e6de87d13423bd7df689503e8ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Tue, 16 Jun 2026 09:26:19 +0200 Subject: [PATCH] Removed Python2 references (#163) Signed-off-by: Alejandro Hernandez Cordero (cherry picked from commit ac2a54072f6e398eca207910d59d4e08a37d3c6d) --- src/python_qt_binding/binding_helper.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/python_qt_binding/binding_helper.py b/src/python_qt_binding/binding_helper.py index 86913fe..cb6b835 100644 --- a/src/python_qt_binding/binding_helper.py +++ b/src/python_qt_binding/binding_helper.py @@ -30,12 +30,7 @@ # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -try: - import __builtin__ as builtins -except ImportError: - # since the 'future' package provides a 'builtins' module in Python 2 - # this must not be checked second - import builtins +import builtins import os import platform import sys