Skip to content

Commit

Permalink
fix: Add python3 compatible imports
Browse files Browse the repository at this point in the history
  • Loading branch information
theychx committed Sep 21, 2016
1 parent f855d45 commit f51fc2f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions catt/http_server.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import os
import time
import traceback
import SocketServer
from BaseHTTPServer import BaseHTTPRequestHandler
try:
import SocketServer
except ImportError:
import socketserver as SocketServer
try:
from BaseHTTPServer import BaseHTTPRequestHandler
except ImportError:
from http.server import BaseHTTPRequestHandler


def serve_file(filename, address="", port=45114):
Expand Down

0 comments on commit f51fc2f

Please sign in to comment.