[issue25976] telnetlib SyntaxError: invalid syntax

2015-12-29 Thread SilentGhost
SilentGhost added the comment: The host ip needs to be supplied as a string: telnetlib.Telnet(host='192.168.1.15', port=3490, timeout=5) -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior

[issue25976] telnetlib SyntaxError: invalid syntax

2015-12-29 Thread Mark McDonnell
New submission from Mark McDonnell: I'm trying to use telnetlib in a simple script similar to the example show in the documentation. I get an error saying SyntaxError: invalid syntax. This is true with Windows 10, and XP, both using Python 2.7.11 32 bit. Here's what happens in IDLE: >>>