Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a8dd0941
Commit
a8dd0941
authored
May 08, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #553277: Accept callbacks that are callable, not callbacks that are true.
parent
09bdf72b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
Lib/ftplib.py
Lib/ftplib.py
+1
-1
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/ftplib.py
View file @
a8dd0941
...
...
@@ -392,7 +392,7 @@ class FTP:
The callback function (2nd argument) is called for each line,
with trailing CRLF stripped. This creates a new port for you.
print_line() is the default callback.'''
if
not
call
back
:
callback
=
print_line
if
not
call
able
(
callback
)
:
callback
=
print_line
resp
=
self
.
sendcmd
(
'TYPE A'
)
conn
=
self
.
transfercmd
(
cmd
)
fp
=
conn
.
makefile
(
'rb'
)
...
...
Misc/ACKS
View file @
a8dd0941
...
...
@@ -226,6 +226,7 @@ John Interrante
Ben Jackson
Paul Jackson
David Jacobs
Geert Jansen
Jack Jansen
Bill Janssen
Drew Jenkins
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment