Removed Python 2.6 support

* Travis CI doesn't support it anymore.
* It had EOL more than 4 years ago
This commit is contained in:
Jakub Roztocil committed 2017-12-28 18:03:37 +01:00
1 parent 4d3b4fa0be
commit ec899d70b7
8 files changed
+13 -159

No files matched your search

+1 -4
View File
@@ -1,12 +1,9 @@
from __future__ import division
import json
from httpie.compat import is_py26, OrderedDict
from collections import OrderedDict
def load_json_preserve_order(s):
if is_py26:
return json.loads(s)
return json.loads(s, object_pairs_hook=OrderedDict)