当前位置:网站首页>About vscode, "code unreachable" will be displayed when calling sendline series functions with pwntools“

About vscode, "code unreachable" will be displayed when calling sendline series functions with pwntools“

2022-07-05 06:47:00 Greeety

This problem is actually related to Pylance It also matters . But the best solution now is to change pwntools This paragraph in the source code

#......
    def send_raw(self, data):
        """send_raw(data) Should not be called directly. Sends data to the tube. Should return ``exceptions.EOFError``, if it is unable to send any more, because of a close tube. """

        raise EOFError('Not implemented')
 #.......

hold raise EOFError('Not implemented') Replace it with Rasie NotImplementedError Can

原网站

版权声明
本文为[Greeety]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140601013072.html