jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/457399 )
Change subject: [cleanup] config2.py: Remove unused variable _thislevel ......................................................................
[cleanup] config2.py: Remove unused variable _thislevel
Change-Id: Ibb4b15a24c9f0ceadab92c4f23c2ce46ad2f22c6 --- M pywikibot/config2.py 1 file changed, 0 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py index 1b1bd67..fb16793 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -1033,7 +1033,6 @@ _uc[_key] = _val
# Get the user files -_thislevel = 0 if __no_user_config: if __no_user_config != '2': warning('Skipping loading of user-config.py.') @@ -1041,7 +1040,6 @@ else: _fns = [os.path.join(base_dir, 'user-config.py')] for _filename in _fns: - _thislevel += 1 if os.path.exists(_filename): _filestatus = os.stat(_filename) _filemode = _filestatus[0]
pywikibot-commits@lists.wikimedia.org