From 9845d81fb021357ddf5885f3b5568a1b57a91ced Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 24 Mar 2013 15:21:54 -0700 Subject: [PATCH] More style fixes --- python/completers/python/jedi_completer.py | 2 +- python/ycm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/completers/python/jedi_completer.py b/python/completers/python/jedi_completer.py index 05760436..2908b0a6 100644 --- a/python/completers/python/jedi_completer.py +++ b/python/completers/python/jedi_completer.py @@ -32,7 +32,7 @@ from os.path import join, abspath, dirname sys.path.insert( 0, join( abspath( dirname( __file__ ) ), 'jedi' ) ) try: from jedi import Script -except ImportError, e: +except ImportError: vimsupport.PostVimMessage( 'Error importing jedi. Make sure the jedi submodule has been checked out. ' 'In the YouCompleteMe folder, run "git submodule update --init --recursive"') diff --git a/python/ycm.py b/python/ycm.py index d31fccb8..501429a3 100644 --- a/python/ycm.py +++ b/python/ycm.py @@ -26,7 +26,7 @@ import ycm_utils as utils try: import ycm_core -except ImportError, e: +except ImportError as e: vimsupport.PostVimMessage( 'Error importing ycm_core. Are you sure you have placed a version 3.2+ ' 'libclang.[so|dll|dylib] in folder "{0}"? See the Installation Guide in '