Skip to content

Commit

Permalink
Imports are Python3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-rt committed Oct 21, 2017
1 parent 83b9af7 commit e26d97f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/plone/app/multilingual/_compat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# coding=utf-8
import sys


PY3 = sys.version_info[0] == 3
if PY3:
from io import StringIO
else:
from StringIO import StringIO
2 changes: 1 addition & 1 deletion src/plone/app/multilingual/tests/test_sitemap.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from StringIO import StringIO
from gzip import GzipFile
from plone.app.multilingual._compat import StringIO
from plone.app.multilingual.interfaces import IPloneAppMultilingualInstalled
from plone.app.multilingual.testing import PAM_FUNCTIONAL_TESTING
from plone.dexterity.utils import createContentInContainer
Expand Down

0 comments on commit e26d97f

Please sign in to comment.