I've learned some valuable lessons in my path to becoming a better coder. For one, always spell check. If something isn't working in your code, make sure similar calls a spelled right <something>.acquire vs <something>.aquire.

I facepalmed when I discovered that little gem. The next thing that is annoying the crap out of me is the old "tabs vs spaces" rules. ViolentPython CH2 problem building the SSH Botnet, one of the labs is building an ssh brute forcing script. The code looks almost exactly the same. When I wrote it, I chose tabs for all my indentation:

Looks pretty similar right? Now throw that into something like Notepad++ and put the "Show all characters" on. Notice some differences, he chose spaces in most of the code except for some parts. One in particular is line 20 "Found = True" run it with my code, Syntax Error. Run his, no problems. If I switch to all spaces, problem still occurs, if I match his tabs, no problem. I find it ponderous. I wrote the my scripts in GEdit, it was originally set to use spaces for indentation, I switched it to tabs due to laziness. Not sure if it would have made a difference though.

Any thoughts?

HA! Actually looking at it through this, I can definitely see some differences. It seems mine has many extra spaces compared to the author's.

Thanks, I figured that would be the best bet. What I think happened is that in GEdit and Notepad++ you can set auto-indent, they must have thrown some garbage in there somewhere. So I turned that feature off. I think I will rewrite the code from scratch and see what happens. What I did learn from this is the -t and -tt switches when running the python command. That is handy.