diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-10-21 17:01:45 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-10-21 17:06:22 +0900 |
commit | acd946d2c7df66ae9c2d9bb86a65ef66ab6c6386 (patch) | |
tree | 58cf8ad87dd9f0b3bbb65c37afba7bc54a4bc6c2 /rest_example.py | |
parent | f0e558f748015a374f10a3267d4ad7d1995c2378 (diff) | |
download | pygerrit-acd946d2c7df66ae9c2d9bb86a65ef66ab6c6386.tar.gz |
Suppress pylint "Unable to import" error
pylint fails because it can't import requests_kerberos. This is a
false positive; we already have handling of import failure.
Change-Id: I1641528b8358a8916dfcf4c67e680a03118b3913
Diffstat (limited to 'rest_example.py')
-rwxr-xr-x | rest_example.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rest_example.py b/rest_example.py index 1c278c8..668ee2a 100755 --- a/rest_example.py +++ b/rest_example.py @@ -31,7 +31,9 @@ import sys from requests.auth import HTTPBasicAuth, HTTPDigestAuth try: + # pylint: disable=F0401 from requests_kerberos import HTTPKerberosAuth, OPTIONAL + # pylint: enable=F0401 _kerberos_support = True except ImportError: _kerberos_support = False |