Remove unused imports, from python scripts. (#4057)

Summary:
Also remove redefined variable.
As reported on https://lgtm.com/projects/g/facebook/rocksdb/
Closes https://github.com/facebook/rocksdb/pull/4057

Differential Revision: D8648342

Pulled By: ajkr

fbshipit-source-id: afd2ba84d1364d316010179edd44777e64ca9183
main
Peter (Stig) Edwards 6 years ago committed by Facebook Github Bot
parent a8e503e545
commit 2694b6dc26
  1. 3
      buckifier/buckify_rocksdb.py
  2. 1
      coverage/parse_gcov_output.py
  3. 4
      tools/db_crashtest.py

@ -3,14 +3,11 @@ from __future__ import division
from __future__ import print_function from __future__ import print_function
from __future__ import unicode_literals from __future__ import unicode_literals
from targets_builder import TARGETSBuilder from targets_builder import TARGETSBuilder
from optparse import OptionParser
import os import os
import fnmatch import fnmatch
import sys import sys
import tempfile
from util import ColorString from util import ColorString
import util
# tests to export as libraries for inclusion in other projects # tests to export as libraries for inclusion in other projects
_EXPORTED_TEST_LIBS = ["env_basic_test"] _EXPORTED_TEST_LIBS = ["env_basic_test"]

@ -1,4 +1,3 @@
import optparse
import re import re
import sys import sys

@ -1,10 +1,8 @@
#! /usr/bin/env python #! /usr/bin/env python
import os import os
import re
import sys import sys
import time import time
import random import random
import logging
import tempfile import tempfile
import subprocess import subprocess
import shutil import shutil
@ -291,7 +289,7 @@ def whitebox_crash_main(args, unknown_args):
} }
else: else:
# normal run # normal run
additional_opts = additional_opts = { additional_opts = {
"kill_random_test": None, "kill_random_test": None,
"ops_per_thread": cmd_params['ops_per_thread'], "ops_per_thread": cmd_params['ops_per_thread'],
} }

Loading…
Cancel
Save