Commit 045a3775 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

py3: import reload() from importlib in py3.

parent 71173144
...@@ -44,6 +44,9 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import \ ...@@ -44,6 +44,9 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import \
ERP5TypeTestCaseMixin, ERP5TypeTestCase, ERP5ReportTestCase ERP5TypeTestCaseMixin, ERP5TypeTestCase, ERP5ReportTestCase
from glob import glob from glob import glob
import transaction import transaction
import six
if not six.PY2:
from importlib import reload
from zLOG import LOG, DEBUG, INFO from zLOG import LOG, DEBUG, INFO
......
...@@ -60,6 +60,7 @@ if six.PY2: ...@@ -60,6 +60,7 @@ if six.PY2:
FileIO = file FileIO = file
else: else:
from io import FileIO from io import FileIO
from importlib import reload
class FileUpload(FileIO): class FileUpload(FileIO):
"""Act as an uploaded file. """Act as an uploaded file.
......
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