Mercurial > p > roundup > code
diff roundup/scripts/roundup_server.py @ 5405:56cc58d20add
Python 3 preparation: use imp.reload instead of reload as needed.
Manual patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 23:51:41 +0000 |
| parents | 7f6afc7477e8 |
| children | 277e91bf7936 |
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py Tue Jul 24 23:50:25 2018 +0000 +++ b/roundup/scripts/roundup_server.py Tue Jul 24 23:51:41 2018 +0000 @@ -40,6 +40,13 @@ import BaseHTTPServer, SocketServer, StringIO try: + # Python 2. + reload +except NameError: + # Python 3. + from imp import reload + +try: from OpenSSL import SSL except ImportError: SSL = None
