Public bug reported:

pyparsing 2.0.2 (included in Ubuntu 14.10) ParseResults.pop() fails with

  Traceback (most recent call last):
    File "pyparsing-test.py", line 4, in <module>
      res.pop()
    File "/usr/lib/python2.7/dist-packages/pyparsing.py", line 422, in pop
      ret = self[index]
  NameError: global name 'index' is not defined

for a minimal test case like

  from pyparsing import Word
  test = Word("test")
  res = test.parseString("test")
  res.pop()

This is fixed upstream in pyparsing 2.0.3 with the following patch:

http://sourceforge.net/p/pyparsing/code/269/tree//trunk/src/pyparsing.py?diff=51924a4d34309d2f53936e05:268

This bug affects Landscape (mostly for development, but still).

** Affects: pyparsing (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to pyparsing in Ubuntu.
https://bugs.launchpad.net/bugs/1381564

Title:
  pyparsing ParseResults.pop() fails with NameError: global name 'index'
  is not defined

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyparsing/+bug/1381564/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to