We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ee6faa commit 6c21d2fCopy full SHA for 6c21d2f
babel/util.py
@@ -218,8 +218,9 @@ def _split(self, text):
218
# There are no file names which contain spaces, fallback to the default implementation
219
return super()._split(text)
220
221
+ super_ = super() # Python 3.9 fix, super() does not work in list comprehension
222
chunks = re.split(self._enclosed_filename_re, text)
- chunks = [[c] if c.startswith(enclosed_filename_start) else super()._split(c) for c in chunks]
223
+ chunks = [[c] if c.startswith(enclosed_filename_start) else super_._split(c) for c in chunks]
224
chunks = [c for c in chain.from_iterable(chunks) if c]
225
return chunks
226
0 commit comments