remove unused python imports

Summary: Remove a number of unused imports detected by the linter.

Reviewed By: wez

Differential Revision: D15776268

fbshipit-source-id: 221f45d275664d037bbabcac9858b40266b4833e
This commit is contained in:
Adam Simpkins 2019-06-12 13:57:10 -07:00 committed by Facebook Github Bot
parent 5d8e8a5fcd
commit 20f211acb8
24 changed files with 3 additions and 45 deletions

View File

@ -9,18 +9,14 @@
import binascii
import collections
import configparser
import datetime
import errno
import fcntl
import json
import os
import shutil
import signal
import stat
import subprocess
import tempfile
import time
import types
import typing
from pathlib import Path

View File

@ -40,7 +40,6 @@ from facebook.eden.overlay.ttypes import OverlayDir
from facebook.eden.ttypes import (
DebugGetRawJournalParams,
DebugJournalDelta,
FileDelta,
JournalPosition,
NoValueForKeyError,
TimeSpec,

View File

@ -7,7 +7,6 @@
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
import collections
import errno
import os
import stat

View File

@ -9,7 +9,6 @@
import abc
import binascii
import errno
import os
import subprocess
from pathlib import Path
@ -19,12 +18,7 @@ import eden.dirstate
import facebook.eden.ttypes as eden_ttypes
from eden.cli import hg_util
from eden.cli.config import EdenCheckout
from eden.cli.doctor.problem import (
FixableProblem,
Problem,
ProblemTracker,
UnexpectedCheckError,
)
from eden.cli.doctor.problem import FixableProblem, ProblemTracker, UnexpectedCheckError
from thrift.Thrift import TApplicationException

View File

@ -7,7 +7,6 @@
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
import binascii
import contextlib
import enum
import logging

View File

@ -16,7 +16,6 @@ from typing import BinaryIO, Dict, Tuple
import eden.dirstate
from . import config as config_mod
from .config import EdenCheckout

View File

@ -9,7 +9,6 @@
import argparse
import errno
import glob
import json
import os
import signal
@ -36,7 +35,6 @@ from . import (
filesystem,
fsck as fsck_mod,
mtab,
overlay as overlay_mod,
process_finder,
rage as rage_mod,
stats as stats_mod,
@ -78,7 +76,6 @@ def infer_client_from_cwd(instance: EdenInstance, clientname: str) -> str:
def do_version(args: argparse.Namespace) -> int:
instance = get_eden_instance(args)
print("Installed: %s" % version_mod.get_installed_eden_rpm_version())
import eden
try:
rv = version_mod.get_running_eden_version(instance)

View File

@ -9,14 +9,10 @@
import abc
import logging
import os
import subprocess
import sys
import typing
from pathlib import Path
from typing import Dict, Iterable, List, NamedTuple, Optional
from . import util
ProcessID = int

View File

@ -7,13 +7,11 @@
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
import abc
import configparser
import io
import os
import unittest
from pathlib import Path
from typing import Dict, List, Optional
import toml
import toml.decoder

View File

@ -9,7 +9,6 @@
import json
import os
import stat
import subprocess
import sys
import typing
@ -18,7 +17,6 @@ from textwrap import dedent
from typing import Optional, Sequence, Set
import pexpect
from eden.cli import util
from eden.integration.lib.hgrepo import HgRepository
from .lib import edenclient, testcase

View File

@ -9,8 +9,6 @@
import abc
import binascii
import itertools
import os
import stat as stat_mod
import struct
import typing

View File

@ -7,7 +7,6 @@
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
import os
import pathlib
import subprocess
import unittest

View File

@ -14,7 +14,6 @@ import json
import logging
import os
import re
import subprocess
import textwrap
from textwrap import dedent
from typing import Any, Dict, List, Optional, Set, Tuple, Union

View File

@ -8,7 +8,6 @@
# of patent rights can be found in the PATENTS file in the same directory.
import os
import unittest
from eden.integration.hg.lib.hg_extension_test_base import EdenHgTestCase, hg_test
from eden.integration.lib import hgrepo

View File

@ -11,7 +11,6 @@ import os
import pathlib
import stat
import tempfile
import typing
import eden.integration.lib.edenclient as edenclient

View File

@ -9,7 +9,6 @@
import abc
import contextlib
import errno
import logging
import os
import os.path
@ -18,7 +17,6 @@ import re
import subprocess
import sys
import tempfile
import threading
import types
import typing

View File

@ -36,7 +36,7 @@ from eden.test_support.temporary_directory import TemporaryDirectoryMixin
from eden.thrift import EdenClient
from hypothesis.internal.detection import is_hypothesis_test
from . import edenclient, gitrepo, hgrepo, repobase, util
from . import edenclient, gitrepo, hgrepo, repobase
set_up_hypothesis()

View File

@ -10,7 +10,6 @@
import os
import shutil
import subprocess
import unittest
from pathlib import Path
from typing import Optional, Set

View File

@ -8,7 +8,6 @@
# of patent rights can be found in the PATENTS file in the same directory.
import os
import unittest
from typing import Dict
from .lib import testcase

View File

@ -7,8 +7,6 @@
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
import os
import pathlib
import subprocess
import sys
import typing

View File

@ -7,10 +7,8 @@
# of patent rights can be found in the PATENTS file in the same directory.
import pathlib
import subprocess
from .lib.fake_edenfs import FakeEdenFS
from .lib.find_executables import FindExe
from .lib.service_test_case import (
ManagedFakeEdenFSMixin,
ServiceTestCaseBase,

View File

@ -8,7 +8,6 @@
# of patent rights can be found in the PATENTS file in the same directory.
import errno
import grp
import os
import stat
import subprocess

View File

@ -10,11 +10,10 @@
import errno
import os
import subprocess
from typing import Type
import __manifest__
from .lib import repobase, testcase
from .lib import testcase
class StaleTest(testcase.HgRepoTestMixin, testcase.EdenRepoTest):

View File

@ -16,7 +16,6 @@ import argparse
import os
import shutil
import subprocess
import sys
import tempfile
import zipapp
from pipes import quote as shellquote