Page MenuHomePhabricator

D55258.diff
No OneTemporary

File Metadata

Created
Sun, Jul 21, 8:53 AM

D55258.diff

Index: cfe/trunk/tools/scan-view/bin/scan-view
===================================================================
--- cfe/trunk/tools/scan-view/bin/scan-view
+++ cfe/trunk/tools/scan-view/bin/scan-view
@@ -80,9 +80,12 @@
def port_is_open(port):
- import SocketServer
try:
- t = SocketServer.TCPServer((kDefaultHost, port), None)
+ import socketserver
+ except ImportError:
+ import SocketServer as socketserver
+ try:
+ t = socketserver.TCPServer((kDefaultHost, port), None)
except:
return False
t.server_close()

Event Timeline