mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-07 20:00:20 +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
|
import os, re, itertools
|
||||||
from base64 import b32decode
|
from base64 import b32decode
|
||||||
import json
|
import json
|
||||||
|
from socket import socket, AF_INET
|
||||||
|
|
||||||
from twisted.trial import unittest
|
from twisted.trial import unittest
|
||||||
from twisted.internet import defer, address
|
from twisted.internet import defer, address
|
||||||
from twisted.python import log
|
from twisted.python import log
|
||||||
from twisted.python.filepath import FilePath
|
from twisted.python.filepath import FilePath
|
||||||
|
from twisted.internet.endpoints import AdoptedStreamServerEndpoint
|
||||||
|
|
||||||
from foolscap.api import Tub, Referenceable, fireEventually, flushEventualQueue
|
from foolscap.api import Tub, Referenceable, fireEventually, flushEventualQueue
|
||||||
from twisted.application import service
|
from twisted.application import service
|
||||||
@ -333,8 +335,6 @@ def foolscapEndpointForPortNumber(portnum):
|
|||||||
# actual socket to an address. Once the bind succeeds here, we're
|
# actual socket to an address. Once the bind succeeds here, we're
|
||||||
# no longer subject to any future EADDRINUSE problems.
|
# no longer subject to any future EADDRINUSE problems.
|
||||||
import fcntl
|
import fcntl
|
||||||
from socket import socket, AF_INET
|
|
||||||
from twisted.internet.endpoints import AdoptedStreamServerEndpoint
|
|
||||||
s = socket()
|
s = socket()
|
||||||
try:
|
try:
|
||||||
s.bind(('', 0))
|
s.bind(('', 0))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user