Fetch the repository succeeded.
This action will force synchronization from simonaXi/ros_comm, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Sun, 13 Nov 2022 16:39:59 +0100
Subject: rosgraph: update code from Python 3.11
---
tools/rosgraph/src/rosgraph/roslogging.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/tools/rosgraph/src/rosgraph/roslogging.py b/tools/rosgraph/src/rosgraph/roslogging.py
index 9ecc121..2df2f22 100644
--- a/src/rosgraph/roslogging.py
+++ b/src/rosgraph/roslogging.py
@@ -62,13 +62,12 @@ class RospyLogger(logging.getLoggerClass()):
if f is not None:
f = f.f_back
while hasattr(f, "f_code"):
- # Search for the right frame using the data already found by parent class.
- co = f.f_code
- filename = os.path.normcase(co.co_filename)
- if filename == file_name and f.f_lineno == lineno and co.co_name == func_name:
+ if f.f_code.co_name == '_base_logger':
break
if f.f_back:
f = f.f_back
+ else:
+ break
# Jump up two more frames, as the logger methods have been double wrapped.
if f is not None and f.f_back and f.f_code and f.f_code.co_name == '_base_logger':
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。