Skip to content

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

removed unused private variable

Pablo Hoffmanc69d94fb459b
diff --git a/scrapy/trunk/scrapy/utils/python.py b/scrapy/trunk/scrapy/utils/python.py
index af3e4cdca..3ea5124c8 100644
--- a/scrapy/trunk/scrapy/utils/python.py
+++ b/scrapy/trunk/scrapy/utils/python.py
@@ -84,7 +84,7 @@ def re_rsearch(pattern, text, chunk_size=1024):
the start position of the match, and the ending (regarding the entire text).
"""
def _chunk_iter():
- offset = text_len = len(text)
+ offset = len(text)
while True:
offset -= (chunk_size * 1024)
if offset <= 0: