Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Minor change to --pidfile argument

Pablo Hoffmand4941a061945
diff --git a/scrapy/command.py b/scrapy/command.py
index ab8968440..62291a353 100644
--- a/scrapy/command.py
+++ b/scrapy/command.py
@@ -110,7 +110,7 @@ class ScrapyCommand(object):
if opts.pidfile:
with open(opts.pidfile, "w") as f:
- f.write(str(os.getpid()))
+ f.write(str(os.getpid()) + os.linesep)
def run(self, args, opts):
"""