Commit cc740218 authored by Jérome Perrin's avatar Jérome Perrin

fixup! py2/py3: Make Products code compatible with both python2 and python3.

parent 1e47124e
...@@ -23,7 +23,7 @@ ZServer hook to dump a traceback of the running python threads. ...@@ -23,7 +23,7 @@ ZServer hook to dump a traceback of the running python threads.
""" """
import six import six
import _thread from six.moves import _thread
from sys import _current_frames from sys import _current_frames
from six.moves import cStringIO as StringIO from six.moves import cStringIO as StringIO
import traceback import traceback
...@@ -114,7 +114,7 @@ def match(self, request): ...@@ -114,7 +114,7 @@ def match(self, request):
return 1 return 1
else: else:
return 0 return 0
import six
if six.PY2: if six.PY2:
from ZServer.HTTPServer import zhttp_handler from ZServer.HTTPServer import zhttp_handler
zhttp_handler.match = match zhttp_handler.match = match
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment