Skip to content

Commit

Permalink
scripts: Remove unused imports in all Python scripts
Browse files Browse the repository at this point in the history
Discovered with pylint3.

Upstream open-amp PR: OpenAMP/open-amp#168

Signed-off-by: Ulf Magnusson <[email protected]>
  • Loading branch information
ulfalizer authored and galak committed Mar 28, 2019
1 parent 12ba9df commit d5b0bd1
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 23 deletions.
2 changes: 0 additions & 2 deletions arch/x86/gen_mmu_x86.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@
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

Expand Down
1 change: 0 additions & 1 deletion doc/extensions/zephyr/link-roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion ext/lib/ipc/open-amp/open-amp/docs/img-src/gen-graph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from graphviz import Digraph
import argparse
import os
import pydot
Expand Down
2 changes: 0 additions & 2 deletions samples/net/google_iot_mqtt/src/private_info/create_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# SPDX-License-Identifier: Apache-2.0

import sys
import os
import re
import subprocess
import argparse

Expand Down
2 changes: 0 additions & 2 deletions scripts/ci/get_modified_boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions scripts/ci/get_modified_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions scripts/gen_app_partitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,9 @@
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'
Expand Down
4 changes: 2 additions & 2 deletions scripts/gitlint/zephyr_commit_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
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):
Expand Down
1 change: 0 additions & 1 deletion scripts/sanity_chk/scl.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Zephyr's sanity check testcases.

import logging
import os
import yaml

log = logging.getLogger("scl")
Expand Down
1 change: 0 additions & 1 deletion scripts/support/quartus-flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import os
import string
import sys
import shutil

quartus_cpf_template = """<?xml version="1.0" encoding="US-ASCII" standalone="yes"?>
<cof>
Expand Down
3 changes: 1 addition & 2 deletions scripts/west_commands/runners/bossac.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
1 change: 0 additions & 1 deletion scripts/west_commands/tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion scripts/yaml_to_cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
'''

import argparse
import sys
import yaml
import pykwalify.core

Expand Down

0 comments on commit d5b0bd1

Please sign in to comment.