From f2561050230a9c56f842acb698853f6998528aaa Mon Sep 17 00:00:00 2001 From: Vivien Maisonneuve Date: Wed, 2 Jul 2014 10:25:55 +0200 Subject: [PATCH] Make symbolnames return a tuple --- pypol/linexprs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypol/linexprs.py b/pypol/linexprs.py index b330045..10daf9d 100644 --- a/pypol/linexprs.py +++ b/pypol/linexprs.py @@ -441,7 +441,7 @@ def symbolname(symbol): def symbolnames(symbols): if isinstance(symbols, str): return symbols.replace(',', ' ').split() - return (symbolname(symbol) for symbol in symbols) + return tuple(symbolname(symbol) for symbol in symbols) class Constant(Expression): -- 2.20.1