Scrapy, a fast high-level web crawling & scraping framework for Python.
use regular comments
Vostretsov Nikitaa46613afa8ac
diff --git a/scrapy/pqueues.py b/scrapy/pqueues.pyindex 31e90ff12..75fc198d0 100644--- a/scrapy/pqueues.py+++ b/scrapy/pqueues.py@@ -64,10 +64,8 @@ def _scheduler_slot(request):def _pathable(x):pathable_slot = "".join([c if c.isalnum() or c in '-._' else '_' for c in x])- """- as we replace some letters we can get collision for different slots- add we add unique part- """+ # as we replace some letters we can get collision for different slots+ # add we add unique partunique_slot = hashlib.md5(x.encode('utf8')).hexdigest()return '-'.join([pathable_slot, unique_slot])