Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set comprehensions are new in Python 2.7

  • Loading branch information...
commit 4350550006c31bf3b0008cdd8876030bf4e1a057 1 parent b484b71
@peterjc peterjc authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Bio/Phylo/NewickIO.py
View
2  Bio/Phylo/NewickIO.py
@@ -34,7 +34,7 @@ class NewickError(Exception):
(r"\n", 'newline'),
]
tokenizer = re.compile('(%s)' % '|'.join([token[0] for token in tokens]))
-token_dict = {name:re.compile(token) for (token, name) in tokens}
+token_dict = dict((name, re.compile(token)) for (token, name) in tokens)
# ---------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.