Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8e814 commit 9291d27Copy full SHA for 9291d27
1 file changed
Lib/ftplib.py
@@ -486,8 +486,7 @@ def parse150(resp):
486
global _150_re
487
if _150_re is None:
488
import re
489
- _150_re = re.compile("150 .* \(([0-9][0-9]*) bytes\)",
490
- re.IGNORECASE)
+ _150_re = re.compile("150 .* \((\d+) bytes\)", re.IGNORECASE)
491
m = _150_re.match(resp)
492
if m:
493
return string.atoi(m.group(1))
0 commit comments