From c3ba7d2ae811944580f316664db0fed164c35190 Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 6 Sep 2013 00:02:32 +0430 Subject: [PATCH] remove except only clauses --- jedi/_compatibility.py | 2 +- jedi/cache.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi/_compatibility.py b/jedi/_compatibility.py index dbe9bbcb..9e893788 100644 --- a/jedi/_compatibility.py +++ b/jedi/_compatibility.py @@ -8,7 +8,7 @@ import imp import os try: import importlib -except: +except ImportError: pass is_py3k = sys.hexversion >= 0x03000000 diff --git a/jedi/cache.py b/jedi/cache.py index 51234eec..1fa6eaaa 100644 --- a/jedi/cache.py +++ b/jedi/cache.py @@ -25,7 +25,7 @@ import json import hashlib try: import cPickle as pickle -except: +except ImportError: import pickle import shutil