dropped the support for Python 2.5

let's elaborate the decision: Python 2.5 is a 6 years old release
and "under the current release policy, no security issues in Python
2.5 will be fixed anymore" (!!); also, it doesn't support the new
zipfile distribution format.
This commit is contained in:
Filippo Valsorda 2012-05-01 17:01:51 +02:00
parent 9beb5af82e
commit 921a145592
5 changed files with 4 additions and 126 deletions

View file

@ -11,16 +11,12 @@ import sys
import zlib
import urllib2
import email.utils
import json
try:
import cStringIO as StringIO
except ImportError:
import StringIO
try:
import json
except ImportError: # Python <2.6, use trivialjson (https://github.com/phihag/trivialjson):
import trivialjson as json
std_headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:5.0.1) Gecko/20100101 Firefox/5.0.1',