Skip to content

Commit

Permalink
Changed: Python 3 only.
Browse files Browse the repository at this point in the history
  • Loading branch information
basrieter committed Oct 12, 2023
1 parent c2b10e9 commit 265d338
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions resources/lib/webdialogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,8 @@ def input(self, heading, text, time_out=30):

server_address = (self.bind_interface, self.port)

try:
# noinspection PyUnresolvedReferences
from http.server import HTTPServer
# noinspection PyUnresolvedReferences
from http.server import BaseHTTPRequestHandler
except:
# noinspection PyUnresolvedReferences
from SocketServer import TCPServer as HTTPServer
# noinspection PyUnresolvedReferences
from BaseHTTPServer import BaseHTTPRequestHandler
from http.server import HTTPServer
from http.server import BaseHTTPRequestHandler

# Create simple handler class
class RetroHandler(BaseHTTPRequestHandler):
Expand Down

0 comments on commit 265d338

Please sign in to comment.