The AST returns `None` instead of an empty array of the value of an
empty iterable literal, so we need to special case when that happens
to get them to parse consistently.
lineno=lineno_from_parseinfo(ast['parseinfo'])\r
)\r
elif literal_type == 'dictionary':\r
+ if not ast['value']:\r
+ ast['value'] = []\r
+\r
+\r
items = [\r
nodes.Pair(\r
parse_literal(item['key']),\r
lineno=lineno_from_parseinfo(ast['parseinfo'])\r
)\r
elif literal_type == 'list':\r
+ if not ast['value']:\r
+ ast['value'] = []\r
+\r
items = [\r
parse_literal(item) for item in ast['value']\r
]\r
lineno=lineno_from_parseinfo(ast['parseinfo'])\r
)\r
elif literal_type == 'tuple':\r
+ if not ast['value']:\r
+ ast['value'] = []\r
+\r
items = [\r
parse_literal(item) for item in ast['value']\r
]\r