File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
fluent.runtime/fluent/runtime Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ def ast_to_id(ast):
10
10
"""
11
11
Returns a string reference for a Term or Message
12
12
"""
13
- return (TERM_SIGIL if isinstance (ast , Term ) else '' ) + ast .id .name
13
+ if isinstance (ast , Term ):
14
+ return TERM_SIGIL + ast .id .name
15
+ return ast .id .name
14
16
15
17
16
18
def add_message_and_attrs_to_store (store , ref_id , item , is_parent = True ):
@@ -49,7 +51,9 @@ def reference_to_id(ref):
49
51
if isinstance (ref , AttributeExpression ):
50
52
return _make_attr_id (reference_to_id (ref .ref ),
51
53
ref .name .name )
52
- return (TERM_SIGIL if isinstance (ref , TermReference ) else '' ) + ref .id .name
54
+ if isinstance (ref , TermReference ):
55
+ return TERM_SIGIL + ref .id .name
56
+ return ref .id .name
53
57
54
58
55
59
def unknown_reference_error_obj (ref_id ):
You can’t perform that action at this time.
0 commit comments