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