Scrapy, a fast high-level web crawling & scraping framework for Python.
Fix reference mistake
OmarFarrag0a5cb7745bc2
diff --git a/scrapy/pipelines/files.py b/scrapy/pipelines/files.pyindex c22404799..cbe588f9a 100644--- a/scrapy/pipelines/files.py+++ b/scrapy/pipelines/files.py@@ -260,8 +260,8 @@ class FTPFilesStore(object):u = urlparse(uri)self.ftp = FTP()self.ftp.connect(u.hostname, u.port or '21')- username = u.username or FTP_USERNAME- password = u.password or FTP_PASSWORD+ username = u.username or self.FTP_USERNAME+ password = u.password or self.FTP_PASSWORDself.ftp.login(username, password)self.basedir = u.path