Skip to content

Commit

Permalink
Merge from 5.x: PR #22270
Browse files Browse the repository at this point in the history
Fixes #22248
  • Loading branch information
dalthviz committed Jul 22, 2024
2 parents cc25a6d + 5c23422 commit 05471ab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion spyder/config/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,16 @@ def _get_pygments_extensions():
lexer_exts = [le for le in lexer_exts if not le.endswith('_*')]
extensions = extensions + list(lexer_exts) + list(other_exts)

return sorted(list(set(extensions)))
extensions = list(set(extensions))

# A non-ascii file extension causes issues for macOS
# See spyder-ide/spyder#22248
try:
extensions.remove('.' + chr(128293))
except ValueError:
pass

return sorted(extensions)


#==============================================================================
Expand Down

0 comments on commit 05471ab

Please sign in to comment.