mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Some minimum-python-version PyLint disables
This commit is contained in:
parent
a545ff4b2e
commit
70810daba2
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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')
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user