summarylogtreecommitdiffstats
path: root/python38.patch
diff options
context:
space:
mode:
authorjwhendy2019-11-21 14:17:08 -0600
committerOskar Roesler2019-11-22 20:05:30 +0100
commit321e579d9cbdcc0701684511748c4993a861a8d8 (patch)
tree17647e572b5ab4bb4eac8975f82c78e04afea764 /python38.patch
parent94adc9aa9c700e30defb28cb5c61b676a592eaab (diff)
downloadaur-321e579d9cbdcc0701684511748c4993a861a8d8.tar.gz
Add patch to handle python3.8 issue
Diffstat (limited to 'python38.patch')
-rw-r--r--python38.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/python38.patch b/python38.patch
new file mode 100644
index 000000000000..932af17380f2
--- /dev/null
+++ b/python38.patch
@@ -0,0 +1,17 @@
+--- a/tools/rosgraph/src/rosgraph/roslogging.py
++++ b/tools/rosgraph/src/rosgraph/roslogging.py
+@@ -49,12 +49,12 @@ from rospkg.environment import ROS_LOG_DIR
+ class LoggingException(Exception): pass
+
+ class RospyLogger(logging.getLoggerClass()):
+- def findCaller(self, dummy=False): # Dummy second arg to match Python3 function declaration
++ def findCaller(self, *args, **kwargs):
+ """
+ Find the stack frame of the caller so that we can note the source
+ file name, line number, and function name with class name if possible.
+ """
+- file_name, lineno, func_name = super(RospyLogger, self).findCaller()[:3]
++ file_name, lineno, func_name = super(RospyLogger, self).findCaller(*args, **kwargs)[:3]
+
+ f = inspect.currentframe()
+ if f is not None: