Skip to content

Commit 4102355

Browse files
committed
add transport and test imports
1 parent 39c1185 commit 4102355

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

riak/tests/test_kv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import cPickle
44
import copy
55
try:
6-
import json
7-
except ImportError:
86
import simplejson as json
7+
except ImportError:
8+
import json
99

1010

1111
class NotJsonSerializable(object):

riak/transports/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
import socket
2828
import errno
2929
try:
30-
import json
31-
except ImportError:
3230
import simplejson as json
31+
except ImportError:
32+
import json
3333

3434
from transport import RiakTransport
3535
from riak.metadata import *

riak/transports/pbc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
import struct
2525

2626
try:
27-
import json
28-
except ImportError:
2927
import simplejson as json
28+
except ImportError:
29+
import json
3030

3131
from riak import RiakError
3232
from riak.mapreduce import RiakLink

0 commit comments

Comments
 (0)