refactor: pyupgrade in common/lib/xmodule (#26780)

This commit is contained in:
M. Zulqarnain
2021-03-10 17:56:07 +05:00
committed by GitHub
parent 8aec103447
commit deb7f5b026
49 changed files with 418 additions and 475 deletions

View File

@@ -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])