Skip to content
Snippets Groups Projects
Commit a15b07f0 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix: Sunset subscript-by-getitem

parent 27f60324
No related branches found
No related tags found
No related merge requests found
......@@ -378,7 +378,7 @@ class Expression(object):
warn("creating subscripts using x[i] syntax is deprecated "
"and will be removed in Pymbolic 2016.x. "
"Use x.index(i) instead.",
DeprecationWarning)
DeprecationWarning, stacklevel=2)
if subscript == ():
return self
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment