mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 00:45:52 +00:00
bring some imports up to the top
This commit is contained in:
parent
318eea05e3
commit
c491b1a7d4
@ -2,11 +2,13 @@
|
||||
import os, re, itertools
|
||||
from base64 import b32decode
|
||||
import json
|
||||
from socket import socket, AF_INET
|
||||
|
||||
from twisted.trial import unittest
|
||||
from twisted.internet import defer, address
|
||||
from twisted.python import log
|
||||
from twisted.python.filepath import FilePath
|
||||
from twisted.internet.endpoints import AdoptedStreamServerEndpoint
|
||||
|
||||
from foolscap.api import Tub, Referenceable, fireEventually, flushEventualQueue
|
||||
from twisted.application import service
|
||||
@ -333,8 +335,6 @@ def foolscapEndpointForPortNumber(portnum):
|
||||
# actual socket to an address. Once the bind succeeds here, we're
|
||||
# no longer subject to any future EADDRINUSE problems.
|
||||
import fcntl
|
||||
from socket import socket, AF_INET
|
||||
from twisted.internet.endpoints import AdoptedStreamServerEndpoint
|
||||
s = socket()
|
||||
try:
|
||||
s.bind(('', 0))
|
||||
|
Loading…
x
Reference in New Issue
Block a user