Skip to content

Commit

Permalink
Fix flake8 'imported but unused' reports
Browse files Browse the repository at this point in the history
$ flake8 | grep F401
./meson.py:17:1: F401 'mesonbuild.mesonlib' imported but unused
./meson.py:18:1: F401 'locale' imported but unused
./run_unittests.py:24:1: F401 'sys' imported but unused
./mesonbuild/minit.py:2:1: F401 'pyclbr.Function' imported but unused
./mesonbuild/minit.py:18:1: F401 'os' imported but unused
./mesonbuild/backend/vs2010backend.py:15:1: F401 'sys' imported but unused
./mesonbuild/backend/xcodebackend.py:19:1: F401 'sys' imported but unused
./mesonbuild/dependencies/ui.py:20:1: F401 'shutil' imported but unused
./mesonbuild/modules/python3.py:15:1: F401 'sys' imported but unused
./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..compilers' imported but unused
./mesonbuild/modules/unstable_icestorm.py:15:1: F401 '..mlog' imported but unused
./test cases/common/98 gen extra/srcgen3.py:3:1: F401 'os' imported but unused
  • Loading branch information
jon-turney committed Mar 3, 2018
1 parent 275c737 commit cd5dba5
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions meson.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from mesonbuild import mesonmain, mesonlib
import sys, os, locale
from mesonbuild import mesonmain
import sys, os

def main():
# Always resolve the command path so Ninja can find it for regen, tests, etc.
Expand Down
2 changes: 1 addition & 1 deletion mesonbuild/backend/vs2010backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os, sys
import os
import pickle
import xml.dom.minidom
import xml.etree.ElementTree as ET
Expand Down
2 changes: 1 addition & 1 deletion mesonbuild/backend/xcodebackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .. import build
from .. import dependencies
from .. import mesonlib
import uuid, os, sys
import uuid, os

from ..mesonlib import MesonException

Expand Down
1 change: 0 additions & 1 deletion mesonbuild/dependencies/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import os
import re
import shutil
import subprocess
from collections import OrderedDict

Expand Down
3 changes: 1 addition & 2 deletions mesonbuild/minit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Copyright 2017 The Meson development team
from pyclbr import Function

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -15,7 +14,7 @@

"""Code that creates simple startup projects."""

import os, sys, argparse, re
import sys, argparse, re
from glob import glob

lib_h_template = '''#pragma once
Expand Down
1 change: 0 additions & 1 deletion mesonbuild/modules/python3.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import sysconfig
from .. import mesonlib, dependencies

Expand Down
2 changes: 1 addition & 1 deletion mesonbuild/modules/unstable_icestorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from .. import mesonlib, compilers, mlog
from .. import mesonlib

from . import ExtensionModule

Expand Down
1 change: 0 additions & 1 deletion run_unittests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import textwrap
import os
import shutil
import sys
import unittest
from unittest import mock
from configparser import ConfigParser
Expand Down
1 change: 0 additions & 1 deletion test cases/common/98 gen extra/srcgen3.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python3

import os
import sys
import argparse

Expand Down

0 comments on commit cd5dba5

Please sign in to comment.