You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
While running pyang on the attached example a runtime error occurs. The
grammar of the test case is not correct. The 'uses' statement is used under
the 'leaf'.
What do you see instead?
Traceback (most recent call last):
File "/usr/bin/pyang", line 186, in <module>
run()
File "/usr/bin/pyang", line 139, in run
module = ctx.add_module(filename, text)
File "/usr/lib/python2.5/site-packages/pyang/__init__.py", line 44, in
add_module
module = self._add_module(ref, text, format)
File "/usr/lib/python2.5/site-packages/pyang/__init__.py", line 83, in
_add_module
statements.validate_module(self, module)
File "/usr/lib/python2.5/site-packages/pyang/statements.py", line 76, in
validate_module
iterate(module, phase)
File "/usr/lib/python2.5/site-packages/pyang/statements.py", line 39, in
iterate
res = f(ctx, stmt)
File "/usr/lib/python2.5/site-packages/pyang/statements.py", line 158, in
<lambda>
('expand_1', 'module'):lambda ctx, s: v_expand_1_children(ctx, s),
File "/usr/lib/python2.5/site-packages/pyang/statements.py", line 910, in
v_expand_1_children
v_expand_1_children(ctx, s)
File "/usr/lib/python2.5/site-packages/pyang/statements.py", line 908, in
v_expand_1_children
v_expand_1_children(ctx, s)
File "/usr/lib/python2.5/site-packages/pyang/statements.py", line 905, in
v_expand_1_children
v_expand_1_uses(ctx, s)
File "/usr/lib/python2.5/site-packages/pyang/statements.py", line 916, in
v_expand_1_uses
if stmt.i_grouping is None:
AttributeError: 'Statement' object has no attribute 'i_grouping'
What version of the product are you using? On what operating system?
pyang 0.9.3
Original issue reported on code.google.com by kur...@gmail.com on 18 Apr 2009 at 12:19
Original issue reported on code.google.com by
kur...@gmail.com
on 18 Apr 2009 at 12:19Attachments:
The text was updated successfully, but these errors were encountered: