Commit a6ff47f9 by Jeremy Bowman

fixup! PLAT-1861 Upgrade to pyfilesystem2

parent 6893bb35
...@@ -611,7 +611,7 @@ class LoncapaProblem(object): ...@@ -611,7 +611,7 @@ class LoncapaProblem(object):
""" """
includes = self.tree.findall('.//include') includes = self.tree.findall('.//include')
for inc in includes: for inc in includes:
filename = inc.get('file') filename = inc.get('file').decode('utf-8')
if filename is not None: if filename is not None:
try: try:
# open using LoncapaSystem OSFS filestore # open using LoncapaSystem OSFS filestore
......
...@@ -44,7 +44,7 @@ class CapaHtmlRenderTest(unittest.TestCase): ...@@ -44,7 +44,7 @@ class CapaHtmlRenderTest(unittest.TestCase):
# Create a test file to include # Create a test file to include
self._create_test_file( self._create_test_file(
u'test_include.xml', u'test_include.xml',
'<test>Test include</test>' u'<test>Test include</test>'
) )
# Generate some XML with an <include> # Generate some XML with an <include>
......
...@@ -24,7 +24,7 @@ def process_includes(fn): ...@@ -24,7 +24,7 @@ def process_includes(fn):
next_include = xml_object.find('include') next_include = xml_object.find('include')
while next_include is not None: while next_include is not None:
system.error_tracker("WARNING: the <include> tag is deprecated, and will go away.") system.error_tracker("WARNING: the <include> tag is deprecated, and will go away.")
file = next_include.get('file') file = next_include.get('file').decode('utf-8')
parent = next_include.getparent() parent = next_include.getparent()
if file is None: if file is None:
......
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