From 716406198e50b04d2f6600c518b01f65ad690748 Mon Sep 17 00:00:00 2001 From: Benjamin Yolken Date: Fri, 3 Feb 2017 21:50:04 -0800 Subject: [PATCH] Clean up imports of cPickle and StringIO --- superset/results_backends.py | 2 +- tests/results_backends_tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/results_backends.py b/superset/results_backends.py index 541c0091dcde6..824eb7b2274d3 100644 --- a/superset/results_backends.py +++ b/superset/results_backends.py @@ -9,7 +9,7 @@ try: import cPickle as pickle -except: +except ImportError: import pickle import logging diff --git a/tests/results_backends_tests.py b/tests/results_backends_tests.py index 9f4e8dc6b26b8..146759c5f0418 100644 --- a/tests/results_backends_tests.py +++ b/tests/results_backends_tests.py @@ -1,6 +1,6 @@ try: import cPickle as pickle -except: +except ImportError: import pickle import mock