Some minimum-python-version PyLint disables

This commit is contained in:
Pedro Algarvio 2015-04-26 10:57:59 +01:00
parent a545ff4b2e
commit 70810daba2
4 changed files with 4 additions and 4 deletions

View File

@ -857,7 +857,7 @@ def _parser():
parser = optparse.OptionParser()
add_arg = parser.add_option
else:
import argparse
import argparse # pylint: disable=minimum-python-version
parser = argparse.ArgumentParser()
add_arg = parser.add_argument

View File

@ -26,7 +26,7 @@ from salt.ext.six.moves import range
from salt.ext.six.moves import map
try:
import importlib
import importlib # pylint: disable=minimum-python-version
HAS_IMPORTLIB = True
except ImportError:
# Python < 2.7 does not have importlib

View File

@ -287,7 +287,7 @@ import salt.utils
# Only used when called from a terminal
log = None
if __name__ == '__main__':
import argparse
import argparse # pylint: disable=minimum-python-version
parser = argparse.ArgumentParser()
parser.add_argument('hostname', help='Hostname')

View File

@ -38,7 +38,7 @@ import socket
from struct import unpack
import pcapy
import sys
import argparse
import argparse # pylint: disable=minimum-python-version
import time