Skip to content

Commit 35f006d

Browse files
committed
Python 3 preparation: use imp.reload instead of reload as needed.
Manual patch.
1 parent e037901 commit 35f006d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

roundup/scripts/roundup_server.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@
3939
import errno, cgi, getopt, os, socket, sys, traceback, time
4040
import BaseHTTPServer, SocketServer, StringIO
4141

42+
try:
43+
# Python 2.
44+
reload
45+
except NameError:
46+
# Python 3.
47+
from imp import reload
48+
4249
try:
4350
from OpenSSL import SSL
4451
except ImportError:

0 commit comments

Comments
 (0)