From 35f7bc06eccd3ca1501403ec96d8a6c35b15e669 Mon Sep 17 00:00:00 2001 From: Ricky Stewart Date: Thu, 21 Nov 2019 14:59:19 +0000 Subject: [PATCH] Bug 1598134 - configure and unit test performance regressed by inspect.stack() call from bug 1582155 r=mshal,froydnj Differential Revision: https://phabricator.services.mozilla.com/D54038 --HG-- extra : moz-landing-system : lando --- python/mozbuild/mozbuild/configure/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mozbuild/mozbuild/configure/options.py b/python/mozbuild/mozbuild/configure/options.py index 4abeb5342604..8b4318e378f6 100644 --- a/python/mozbuild/mozbuild/configure/options.py +++ b/python/mozbuild/mozbuild/configure/options.py @@ -22,7 +22,7 @@ _ALL_CATEGORIES = ( def _infer_option_category(define_depth): - stack_frame = inspect.stack()[3 + define_depth] + stack_frame = inspect.stack(0)[3 + define_depth] try: path = os.path.relpath(stack_frame[0].f_code.co_filename) except ValueError: