Nmap Development mailing list archives

Re: Last chance to test 4.50! New candidate binaries.


From: "João Medeiros" <ignotus21 () gmail com>
Date: Wed, 12 Dec 2007 17:39:53 -0300

No problem, You're wellcome. :)

On Dec 12, 2007 5:34 PM, Kris Katterjohn <katterjohn () gmail com> wrote:

João Medeiros wrote:
Hi,

    No, because raw_output is a vector and the return value must be a string.

Att, João Medeiros.

On Dec 12, 2007 5:27 PM, Kris Katterjohn <katterjohn () gmail com> wrote:
João Medeiros wrote:
Hi,

    I made two patchs to solve this problem. See attachments.

Att, João Medeiros.

 From NmapCommand.py.diff:

-        return "\\n".join(raw_output)
+        return "".join(raw_output)


Isn't "".join(raw_output) the same as just raw_output?

Surely correct me if I'm wrong as the only experience with Python I have
is the brief bit I worked on UMIT during the SoC :)

Thanks,
Kris Katterjohn


Sorry! :)

In your patch I saw this line:

          raw_output = raw_desc.readlines()

And assumed readlines() returns a string.

Thanks,
Kris Katterjohn


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: