Ai
1 Star 0 Fork 9

Cody Gu/ros_comm

forked from simonaXi/ros_comm 
Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
0000-rosgraph-update-code-from-Python-3.11.patch 1.19 KB
Copy Edit Raw Blame History
Cody Gu authored 2025-01-26 00:27 +08:00 . fix: utf-8 encoding
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':
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/codygua/ros_comm.git
git@gitee.com:codygua/ros_comm.git
codygua
ros_comm
ros_comm
master

Search