Comments
Patch
@@ -2283,7 +2283,10 @@ def _parsealiasdecl(decl):
if (pos != len(decl)):
raise error.ParseError(_('invalid token'), pos)
tree = parser.simplifyinfixops(tree, ('list',))
-
+ except error.ParseError as inst:
+ return (decl, None, None, parser.parseerrordetail(inst))
+
+ if True: # XXX to be removed
if tree[0] == 'symbol':
# "name = ...." style
name = tree[1]
@@ -2307,8 +2310,6 @@ def _parsealiasdecl(decl):
return (name, tree[:2], args, None)
return (decl, None, None, _("invalid format"))
- except error.ParseError as inst:
- return (decl, None, None, parser.parseerrordetail(inst))
def _relabelaliasargs(tree, args):
if not isinstance(tree, tuple):