(self)
| 1681 | return self.contents |
| 1682 | |
| 1683 | def run(self): |
| 1684 | try: |
| 1685 | from urllib.request import urlopen |
| 1686 | except ImportError: |
| 1687 | from urllib import urlopen |
| 1688 | for _ in range(10): |
| 1689 | try: |
| 1690 | stream = urlopen(full_url) |
| 1691 | contents = stream.read() |
| 1692 | contents = contents.decode("utf-8") |
| 1693 | self.contents = contents |
| 1694 | break |
| 1695 | except IOError: |
| 1696 | continue |
| 1697 | |
| 1698 | t = T() |
| 1699 | t.daemon = True |