Specify full package and module on imports
This commit is contained in:
@@ -18,7 +18,7 @@ from collections import namedtuple
|
|||||||
try:
|
try:
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
except ImportError: # Python <2.7
|
except ImportError: # Python <2.7
|
||||||
from util import OrderedDict
|
from cassandra.util import OrderedDict
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from collections import defaultdict
|
|||||||
try:
|
try:
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
except ImportError: # Python <2.7
|
except ImportError: # Python <2.7
|
||||||
from util import OrderedDict
|
from cassandra.util import OrderedDict
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|||||||
Reference in New Issue
Block a user