We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 584723c commit 32f1cb7Copy full SHA for 32f1cb7
fluent.runtime/fluent/runtime/__init__.py
@@ -68,10 +68,13 @@ def lookup(self, full_id):
68
def format(self, message_id, args=None):
69
if message_id.startswith(TERM_SIGIL):
70
raise LookupError(message_id)
71
- fluent_args = {}
72
if args is not None:
73
- for argname, argvalue in args.items():
74
- fluent_args[argname] = native_to_fluent(argvalue)
+ fluent_args = {
+ argname: native_to_fluent(argvalue)
+ for argname, argvalue in args.items()
75
+ }
76
+ else:
77
+ fluent_args = {}
78
79
errors = []
80
resolve = self.lookup(message_id)
0 commit comments