-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
telnetlib raises UnboundLocalError #37016
Comments
I have a tiny test script that causes telnetlib to Here is the script: import telnetlib
tn = telnetlib.Telnet ("surfers.org", 4242)
tn.read_until ("Please enter your name:")
tn.write ("Mongo\n")
tn.read_until ("just connect to Surfers:") Here is the exact error: # python term.py
Traceback (most recent call last):
File "term.py", line 6, in ?
tn.read_until ("just connect to Surfers:")
File "/usr/local/lib/python2.2/telnetlib.py", line 297, in
read_until
self.process_rawq()
File "/usr/local/lib/python2.2/telnetlib.py", line 424, in
process_rawq
self.msg('IAC %d not recognized' % ord(opt))
UnboundLocalError: local variable 'opt' referenced before
assignment Let me know if I can provide more information. Yours, |
Logged In: YES This appears to be trivial fix in telnetlib.py, line 424: |
Logged In: YES Checked in as 1.16.10.2. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: