Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e8468c

Browse files
committed
remove global decl about unused variable
1 parent 80e29bd commit 0e8468c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Lib/ftplib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ def sendport(self, host, port):
245245

246246
def makeport(self):
247247
'''Create a new socket and send a PORT command for it.'''
248-
global nextport
249248
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
250249
sock.bind(('', 0))
251250
sock.listen(1)

0 commit comments

Comments
 (0)