D
D
DEVELOPER2020-06-25 01:44:45
Python
DEVELOPER, 2020-06-25 01:44:45

SyntaxWarning: "is" with a literal. Did you mean "=="?

After rearranging the system (Win10), I began to install the necessary tools, but ran into an error:

C:\tool\dirsearch>dirsearch.py -u http://www.yandex.ru/ -e rar,exe -w C:\Users\0000000\Desktop\list.txt  -t 10000 -x503,403
C:\tool\dirsearch\lib\controller\Controller.py:317: SyntaxWarning: "is" with a literal. Did you mean "=="?
  basePath = "/" if requester.basePath is "" else requester.basePath
C:\tool\dirsearch\lib\reports\PlainTextReport.py:33: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.basePath is ""
C:\tool\dirsearch\lib\reports\SimpleReport.py:31: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.basePath is ""

 _|. _ _  _  _  _ _|_    v0.3.9
(_||| _) (/_(_|| (_| )

Traceback (most recent call last):
  File "C:\tool\dirsearch\dirsearch.py", line 40, in <module>
    main = Program()
  File "C:\tool\dirsearch\dirsearch.py", line 36, in __init__
    self.controller = Controller(self.script_path, self.arguments, self.output)
  File "C:\tool\dirsearch\lib\controller\Controller.py", line 125, in __init__
    self.printConfig()
  File "C:\tool\dirsearch\lib\controller\Controller.py", line 233, in printConfig
    self.output.config(
TypeError: config() takes 8 positional arguments but 9 were given

C:\tool\dirsearch>


I see that there is a syntactic misunderstanding in certain lines, but how to fix it and what ...... Why does it occur?
Rearrange and Python and Dirsearch and pens and Git and PIP.
================================================= ==
Windows10 x64, Python 3.8.3 x64, -ip 19.2.3, pip 20.1.1, setuptools 41.2.0

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
soremix, 2020-06-25
@SoreMix

everyone is like that.
https://github.com/maurosoria/dirsearch/issues/240
Waiting for a fix

S
Seva Shpun, 2020-06-25
@SevaShpun

Can you even look at the code?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question