Skip to content

Commit

Permalink
python2 vs python3 import location for BaseHTTPRequestHandler
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21570 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 7, 2019
1 parent beee60b commit bf66f3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/xpra/server/http_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
from urllib import unquote #python2 @UnusedImport
except ImportError:
from urllib.parse import unquote #python3 @Reimport @UnresolvedImport
from http.server import BaseHTTPRequestHandler
try:
from BaseHTTPServer import BaseHTTPRequestHandler #python2 @UnusedImport
except:

from http.server import BaseHTTPRequestHandler #python3 @Reimport @UnresolvedImport

from xpra.util import envbool, std, AdHocStruct
from xpra.os_util import PYTHON2
Expand Down

0 comments on commit bf66f3d

Please sign in to comment.