From f4b65123b4ec40897d5fbb374ad3d8a00f6633a6 Mon Sep 17 00:00:00 2001 From: Marcos Talau Date: Fri, 23 Sep 2022 14:05:16 -0300 Subject: [PATCH] In threading replace getName() by name due DeprecationWarning --- bin/pwncat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/pwncat b/bin/pwncat index b5cc524..d413654 100755 --- a/bin/pwncat +++ b/bin/pwncat @@ -4207,19 +4207,19 @@ class Runner(object): "Call INTERRUPT: %s.%s() for %s", getattr(interrupt, "__self__").__class__.__name__, interrupt.__name__, - self.__threads[key].getName(), + self.__threads[key].name, ) interrupt() # [2/3] All blocking events inside the threads are gone, now join them try: self.log.trace( # type: ignore - "Joining %s", self.__threads[key].getName() + "Joining %s", self.__threads[key].name ) # NOTE: The thread.join() operating will also block the signal # handler if we try to join too many threads at once. self.__threads[key].join() self.log.trace( # type: ignore - "Joined %s", self.__threads[key].getName() + "Joined %s", self.__threads[key].name ) except RuntimeError: pass