diff options
author | eroman <eroman@chromium.org> | 2015-01-26 12:46:54 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-26 20:48:30 +0000 |
commit | cf9eb1188b4fed3ad3f3a187e965625fb018735a (patch) | |
tree | 80025915c28e74b2ed20bdf8447875a7d87b18a1 /tools/vim | |
parent | d04be4fda0224a42f24a0e1132c057c4da2fa833 (diff) | |
download | chromium_src-cf9eb1188b4fed3ad3f3a187e965625fb018735a.zip chromium_src-cf9eb1188b4fed3ad3f3a187e965625fb018735a.tar.gz chromium_src-cf9eb1188b4fed3ad3f3a187e965625fb018735a.tar.bz2 |
Remove reference to FileNotFoundError, as it is not available in python 2.
NOTRY=true
Review URL: https://codereview.chromium.org/874403003
Cr-Commit-Position: refs/heads/master@{#313128}
Diffstat (limited to 'tools/vim')
-rw-r--r-- | tools/vim/chromium.ycm_extra_conf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vim/chromium.ycm_extra_conf.py b/tools/vim/chromium.ycm_extra_conf.py index 2901c54..76fce67 100644 --- a/tools/vim/chromium.ycm_extra_conf.py +++ b/tools/vim/chromium.ycm_extra_conf.py @@ -56,7 +56,7 @@ def SystemIncludeDirectoryFlags(): with open(os.devnull, 'rb') as DEVNULL: output = subprocess.check_output(['clang', '-v', '-E', '-x', 'c++', '-'], stdin=DEVNULL, stderr=subprocess.STDOUT) - except (FileNotFoundError, subprocess.CalledProcessError): + except: return [] includes_regex = r'#include <\.\.\.> search starts here:\s*' \ r'(.*?)End of search list\.' |