mirror of https://github.com/scrapy/scrapy.git
Clarify comment about Pyhton versions
This commit is contained in:
parent
0d87e77afe
commit
6edd4114c4
|
|
@ -25,9 +25,9 @@ def _serializable_queue(queue_class, serialize, deserialize):
|
|||
def _pickle_serialize(obj):
|
||||
try:
|
||||
return pickle.dumps(obj, protocol=2)
|
||||
# Python<=3.4 raises pickle.PicklingError here while
|
||||
# Python>=3.5 raises AttributeError and
|
||||
# Python>=3.6 raises TypeError
|
||||
# Python <= 3.4 raises pickle.PicklingError here while
|
||||
# 3.5 <= Python < 3.6 raises AttributeError and
|
||||
# Python >= 3.6 raises TypeError
|
||||
except (pickle.PicklingError, AttributeError, TypeError) as e:
|
||||
raise ValueError(str(e))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue