mirror of
https://github.com/facebook/sapling.git
synced 2024-08-16 14:00:24 +03:00
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:
parent
5d8e8a5fcd
commit
20f211acb8
@ -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
|
||||
|
@ -40,7 +40,6 @@ from facebook.eden.overlay.ttypes import OverlayDir
|
||||
from facebook.eden.ttypes import (
|
||||
DebugGetRawJournalParams,
|
||||
DebugJournalDelta,
|
||||
FileDelta,
|
||||
JournalPosition,
|
||||
NoValueForKeyError,
|
||||
TimeSpec,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -16,7 +16,6 @@ from typing import BinaryIO, Dict, Tuple
|
||||
|
||||
import eden.dirstate
|
||||
|
||||
from . import config as config_mod
|
||||
from .config import EdenCheckout
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -9,8 +9,6 @@
|
||||
|
||||
import abc
|
||||
import binascii
|
||||
import itertools
|
||||
import os
|
||||
import stat as stat_mod
|
||||
import struct
|
||||
import typing
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -11,7 +11,6 @@ import os
|
||||
import pathlib
|
||||
import stat
|
||||
import tempfile
|
||||
import typing
|
||||
|
||||
import eden.integration.lib.edenclient as edenclient
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
@ -10,7 +10,6 @@
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
from typing import Optional, Set
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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):
|
||||
|
@ -16,7 +16,6 @@ import argparse
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import zipapp
|
||||
from pipes import quote as shellquote
|
||||
|
Loading…
Reference in New Issue
Block a user