From 0b7a2fba88077406a5223984139475b0c1b98da6 Mon Sep 17 00:00:00 2001 From: zcutlip Date: Tue, 26 May 2020 09:59:40 -0700 Subject: [PATCH] xrange alias not propogating so we need to set it explicitly in some places (#268) --- voltron/plugins/__init__.py | 2 ++ voltron/plugins/debugger/__init__.py | 2 ++ voltron/plugins/debugger/dbg_lldb.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/voltron/plugins/__init__.py b/voltron/plugins/__init__.py index e69de29..4c109a3 100644 --- a/voltron/plugins/__init__.py +++ b/voltron/plugins/__init__.py @@ -0,0 +1,2 @@ +if not hasattr(__builtins__, "xrange"): + xrange = range diff --git a/voltron/plugins/debugger/__init__.py b/voltron/plugins/debugger/__init__.py index e69de29..4c109a3 100644 --- a/voltron/plugins/debugger/__init__.py +++ b/voltron/plugins/debugger/__init__.py @@ -0,0 +1,2 @@ +if not hasattr(__builtins__, "xrange"): + xrange = range diff --git a/voltron/plugins/debugger/dbg_lldb.py b/voltron/plugins/debugger/dbg_lldb.py index 4dd8ec8..4c81592 100644 --- a/voltron/plugins/debugger/dbg_lldb.py +++ b/voltron/plugins/debugger/dbg_lldb.py @@ -10,6 +10,8 @@ from voltron.api import * from voltron.plugin import * from voltron.dbg import * +from voltron.plugins.debugger import xrange + try: import lldb HAVE_LLDB = True