[issue35236] urllib.request.urlopen throws on some valid FTP files

2018-11-13 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +9779 stage: -> patch review ___ Python tracker ___ ___

[issue35236] urllib.request.urlopen throws on some valid FTP files

2018-11-13 Thread Ian Liu Rodrigues
New submission from Ian Liu Rodrigues : Some FTP clients will not allow changing to a directory if the path does not ends with a slash. For example, try out this in a public FTP: from ftplib import FTP ftp = FTP('ftp.unicamp.br') ftp.login() ftp.cwd('pub/libreoffice') # throws error