refactor: pyupgrade in common/lib/xmodule (#26780)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
# lint-amnesty, pylint: disable=missing-module-docstring
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from lxml import etree
|
||||
|
||||
@@ -28,4 +27,4 @@ def stringify_children(node):
|
||||
parts.append(etree.tostring(c, with_tail=True, encoding='unicode'))
|
||||
|
||||
# filter removes possible Nones in texts and tails
|
||||
return u''.join([part for part in parts if part])
|
||||
return ''.join([part for part in parts if part])
|
||||
|
||||
Reference in New Issue
Block a user