Skip to content

Commit f2692ae

Browse files
author
Bruce Stringer
committed
Python 3 fixes
1 parent 03c0bc1 commit f2692ae

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

fleece/httperror.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from BaseHTTPServer import BaseHTTPRequestHandler
1+
try:
2+
from BaseHTTPServer import BaseHTTPRequestHandler
3+
except ImportError:
4+
from http.server import BaseHTTPRequestHandler
25

36

47
class HTTPError(Exception):

fleece/raxauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import requests
22

3-
from httperror import HTTPError
3+
from fleece.httperror import HTTPError
44

55

66
def authenticate():

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py27,style
2+
envlist = py27,py34,style
33

44
[testenv]
55
install_command = pip install -U {opts} {packages}
@@ -16,4 +16,4 @@ commands =
1616
flake8 fleece setup.py --statistics --exclude tests
1717
flake8 tests --statistics --ignore D100,D101,D102
1818
# TODO(BS): Turn pylint back on once things get cleaned up.
19-
# pylint fleece setup.py
19+
# pylint fleece setup.py

0 commit comments

Comments
 (0)