Loading

Paste #pix6owfod

  1. diff -r 96b8395ca393 nml/free_number_list.py
  2. --- a/nml/free_number_list.py   Thu May 18 20:58:11 2017 +0200
  3. +++ b/nml/free_number_list.py   Mon Jun 19 20:26:10 2017 +0200
  4. @@ -69,7 +69,7 @@
  5.          @return: Some free number.
  6.          """
  7.          assert len(self.states) > 0
  8. -        if self.free_numbers == 0:
  9. +        if len(self.free_numbers) == 0:
  10.              raise generic.ScriptError(self.exception, pos)
  11.          num = self.free_numbers.pop()
  12.          self.states[-1].append(num)
  13.  

Comments