Skip to content

Commit

Permalink
Forgot to update some small part.
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-paul-mueller committed Apr 23, 2024
1 parent 54b55e1 commit 6dd0bf6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/jace/translator/sub_translators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,9 @@ def _get_subtranslators_cls(
If the externally defined subtranslators are requested they will be
first and ordered as FILO order.
"""
# It is important that the externally defined are ordered before the builtins
# and are ordered in FILO order, especuially if multiple subtranslator per
# primitive are registered. Because this way they are inserted first
# into the internal list of the driver, and furthermore since `sorted()`
# is stable they will tend to end up more to the front.
ret: list[type[jtrans.JaCeSubTranslatorInterface]] = []
if with_external:
# Guarantees that we get them in FIFO order.
ret.extend(reversed(_EXTERNAL_SUBTRANSLATORS.keys()))
if builtins:
ret.extend(_BUILTIN_SUBTRANSLATORS)
Expand Down

0 comments on commit 6dd0bf6

Please sign in to comment.