fsmonitor: black format + unused import

Reviewed By: singhsrb

Differential Revision: D8551677

fbshipit-source-id: fe98ae41a382a499823bd52c518a269b5f8e3b40
This commit is contained in:
Liubov Dmitrieva 2018-06-20 15:16:10 -07:00 committed by Facebook Github Bot
parent 30ed418d5d
commit 6db13f4759
2 changed files with 9 additions and 8 deletions

View File

@ -26,11 +26,7 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# no unicode literals
from __future__ import absolute_import, division, print_function
import inspect
import math
@ -39,6 +35,12 @@ import socket
import subprocess
import time
from . import capabilities, compat, encoding
# no unicode literals
# Sometimes it's really hard to get Python extensions to compile,
# so fall back to a pure Python implementation.
try:
@ -50,7 +52,6 @@ try:
except ImportError:
from . import pybser as bser
from . import capabilities, compat, encoding, load
if os.name == "nt":
import ctypes
@ -854,6 +855,7 @@ class client(object):
return name in result
def _resolvesockname(self):
# if invoked via a trigger, watchman will set this env var; we
# should use it unless explicitly set otherwise
path = os.getenv("WATCHMAN_SOCK")

View File

@ -9,9 +9,8 @@ from __future__ import absolute_import
import getpass
from mercurial.node import hex
from mercurial import progress, util
from mercurial.node import hex
from .. import pywatchman