scripts: Remove unused imports in all Python scripts

Discovered with pylint3.

Upstream open-amp PR: https://github.com/OpenAMP/open-amp/pull/168

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2019-03-19 19:37:07 +01:00 committed by Kumar Gala
commit d5b0bd14e3
13 changed files with 4 additions and 23 deletions

View file

@ -42,11 +42,9 @@ from reading their contents.
import os
import sys
import struct
import parser
from collections import namedtuple
import ctypes
import argparse
import re
from elftools.elf.elffile import ELFFile
from elftools.elf.sections import SymbolTableSection

View file

@ -7,7 +7,6 @@
from __future__ import print_function
from __future__ import unicode_literals
import re
import os
from docutils import nodes
from local_util import run_cmd_get_output

View file

@ -1,4 +1,3 @@
from graphviz import Digraph
import argparse
import os
import pydot

View file

@ -5,8 +5,6 @@
# SPDX-License-Identifier: Apache-2.0
import sys
import os
import re
import subprocess
import argparse

View file

@ -3,9 +3,7 @@
# A script to generate a list of boards that have changed or added and create an
# arguemnts file for sanitycheck to allow running more tests for those boards.
import sys
import re, os
from email.utils import parseaddr
import sh
import logging
import argparse

View file

@ -3,9 +3,7 @@
# A script to generate a list of tests that have changed or added and create an
# arguemnts file for sanitycheck to allow running those tests with --all
import sys
import re, os
from email.utils import parseaddr
import os
import sh
import logging
import argparse

View file

@ -36,13 +36,9 @@ import sys
import argparse
import os
import re
import string
import subprocess
from collections import OrderedDict
from elf_helper import ElfHelper
from elftools.elf.elffile import ELFFile
from elftools.elf.sections import SymbolTableSection
from operator import itemgetter
SZ = 'size'
SRC = 'sources'

View file

@ -11,8 +11,8 @@ While every LineRule can be implemented as a CommitRule, it's usually easier and
that fits your needs.
"""
from gitlint.rules import CommitRule, RuleViolation, TitleRegexMatches, CommitMessageTitle, LineRule, CommitMessageBody
from gitlint.options import IntOption, BoolOption, StrOption, ListOption
from gitlint.rules import CommitRule, RuleViolation, CommitMessageTitle, LineRule, CommitMessageBody
from gitlint.options import IntOption, StrOption
import re
class BodyMinLineCount(CommitRule):

View file

@ -6,7 +6,6 @@
# Zephyr's sanity check testcases.
import logging
import os
import yaml
log = logging.getLogger("scl")

View file

@ -6,7 +6,6 @@ import argparse
import os
import string
import sys
import shutil
quartus_cpf_template = """<?xml version="1.0" encoding="US-ASCII" standalone="yes"?>
<cof>

View file

@ -4,10 +4,9 @@
'''bossac-specific runner (flash only) for Atmel SAM microcontrollers.'''
import os
import platform
from runners.core import ZephyrBinaryRunner, RunnerCaps, BuildConfiguration
from runners.core import ZephyrBinaryRunner, RunnerCaps
DEFAULT_BOSSAC_PORT = '/dev/ttyACM0'

View file

@ -3,7 +3,6 @@
# SPDX-License-Identifier: Apache-2.0
from argparse import Namespace
from unittest.mock import patch
from build import Build
import pytest

View file

@ -9,7 +9,6 @@ pairs to use within a CMake build file.
'''
import argparse
import sys
import yaml
import pykwalify.core