summaryrefslogtreecommitdiff
path: root/Lib/telnetlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/telnetlib.py')
-rw-r--r--Lib/telnetlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/telnetlib.py b/Lib/telnetlib.py
index 1040e3cab3..db372000d3 100644
--- a/Lib/telnetlib.py
+++ b/Lib/telnetlib.py
@@ -394,7 +394,7 @@ class Telnet:
buf = self.cookedq
self.cookedq = ''
if not buf and self.eof and not self.rawq:
- raise EOFError, 'telnet connection closed'
+ raise EOFError('telnet connection closed')
return buf
def read_sb_data(self):