(s)
| 123 | textwindow(p) |
| 124 | |
| 125 | def convert65536(s): |
| 126 | #convert out-of-range characters |
| 127 | res = [] |
| 128 | for c in s: |
| 129 | k = ord(c) |
| 130 | if k < 65536: |
| 131 | res.append(c) |
| 132 | else: |
| 133 | res.append("{"+str(k)+"?}") |
| 134 | return "".join(res) |
| 135 | |
| 136 | def gethtml(link): |
| 137 | user_agent = "Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0" |
no test coverage detected