Commit 175233de authored by Stefan Behnel's avatar Stefan Behnel

Py2.6 compatibility fix

parent eef6a2ba
......@@ -808,7 +808,7 @@ def p_cat_string_literal(s):
continue
elif next_kind != kind:
# concatenating f strings and normal strings is allowed and leads to an f string
if {kind, next_kind} == {'f', 'u'} or {kind, next_kind} == {'f', ''}:
if set([kind, next_kind]) in (set(['f', 'u']), set(['f', ''])):
kind = 'f'
else:
error(pos, "Cannot mix string literals of different types, expected %s'', got %s''" %
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment