mirror of
https://github.com/python/cpython.git
synced 2024-11-29 21:05:33 +08:00
MACTCP renamed to MACTCPconst
This commit is contained in:
parent
85c9aea6e2
commit
173c8bd310
@ -10,7 +10,7 @@ but getpeername() and makefile() do work; everything used by ftplib works!
|
||||
|
||||
|
||||
import mactcp
|
||||
import MACTCP
|
||||
import MACTCPconst
|
||||
import macdnr
|
||||
|
||||
|
||||
@ -183,7 +183,7 @@ class _tcpsocket(_socket):
|
||||
try:
|
||||
self.databuf, urg, mark = self.stream.Rcv(0)
|
||||
except mactcp.error, arg:
|
||||
if arg[0] != MACTCP.connectionClosing:
|
||||
if arg[0] != MACTCPconst.connectionClosing:
|
||||
raise mactcp.error, arg
|
||||
rv = self.databuf[:bufsize]
|
||||
self.databuf = self.databuf[bufsize:]
|
||||
|
Loading…
Reference in New Issue
Block a user