d4357f00f0592923ed6376bdf489072c3cb1e0af
max
Mon Sep 9 12:14:08 2019 -0700
fixing small problem in last comment, code review, refs #24108
diff --git src/hg/pyLib/hgLib.py src/hg/pyLib/hgLib.py
index 191eed0..ee13bb9 100644
--- src/hg/pyLib/hgLib.py
+++ src/hg/pyLib/hgLib.py
@@ -353,31 +353,31 @@
if status==400:
print("Status: 400 Bad Request")
elif status==429:
print("Status: 429 Too Many Requests")
else:
raise Exception("Unknown status code, please update hgLib.py")
if fname is not None:
print("Content-Disposition: attachment; filename=%s" % fname)
print # this newline is essential, it means: end of header lines
if doWarnBot:
print ("
")
print ("We have a suspicion that you are an automated web bot software, not a real user. ")
- print ("To keep our site fast for other users, we have slowed down this page by %d milliseconds. ")
+ print ("To keep our site fast for other users, we have slowed down this page. ")
print ("The slowdown will gradually disappear. ")
print ("If you think this is a mistake, please contact us at genome-www@soe.ucsc.edu. ")
print ("Also note that all data for hgGeneGraph can be obtained through our public MySQL server and")
print ("all our software source code is available and can be installed locally onto your own computer. ")
print ("If you are unsure how to use these resources, do not hesitate to contact us.")
print ("
")
def queryBottleneck(host, port, ip):
" contact UCSC-style bottleneck server to get current delay time. From hg/lib/botDelay.c "
# send ip address
import socket
s = socket.socket()
s.connect((host, int(port)))
msg = ip