mirror of
https://github.com/httpie/cli.git
synced 2026-06-20 11:32:56 +02:00
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:
1 parent
4d3b4fa0be
commit
ec899d70b7
8 files changed
+13
-159
No files matched your search
+1
-4
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user