]> git.ipfire.org Git - ipfire-2.x.git/commit
python3-pyparsing: Update to version 3.0.7
authorAdolf Belka <adolf.belka@ipfire.org>
Fri, 8 Apr 2022 18:49:56 +0000 (20:49 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Sun, 10 Apr 2022 09:51:56 +0000 (09:51 +0000)
commit18ed846002a02d51a9122133dc2314cbb6d5b04e
tree9cb2b6b7354b05ae58b66fad19dce317b9c55a1b
parentb86bd4f90adc4111db864cb8c1365a0d115a6675
python3-pyparsing: Update to version 3.0.7

- Update from 3.0.6 to 3.0.7
- Update of rootfile
- Changelog
Version 3.0.7 -
- Fixed bug #345, in which delimitedList changed expressions in place
  using expr.streamline(). Reported by Kim Gräsman, thanks!
- Fixed bug #346, when a string of word characters was passed to WordStart
  or WordEnd instead of just taking the default value. Originally posted
  as a question by Parag on StackOverflow, good catch!
- Fixed bug #350, in which White expressions could fail to match due to
  unintended whitespace-skipping. Reported by Fu Hanxi, thank you!
- Fixed bug #355, when a QuotedString is defined with characters in its
  quoteChar string containing regex-significant characters such as ., *,
  ?, [, ], etc.
- Fixed bug in ParserElement.run_tests where comments would be displayed
  using with_line_numbers.
- Added optional "min" and "max" arguments to `delimited_list`. PR
  submitted by Marius, thanks!
- Added new API change note in `whats_new_in_pyparsing_3_0_0`, regarding
  a bug fix in the `bool()` behavior of `ParseResults`.
  Prior to pyparsing 3.0.x, the `ParseResults` class implementation of
  `__bool__` would return `False` if the `ParseResults` item list was empty,
  even if it contained named results. In 3.0.0 and later, `ParseResults` will
  return `True` if either the item list is not empty *or* if the named
  results dict is not empty.
    # generate an empty ParseResults by parsing a blank string with
    # a ZeroOrMore
      result = Word(alphas)[...].parse_string("")
      print(result.as_list())
      print(result.as_dict())
      print(bool(result))
  Prints:
      []
      {}
      False
    # add a results name to the result
      result["name"] = "empty result"
      print(result.as_list())
      print(result.as_dict())
      print(bool(result))
  Prints:
      []
      {'name': 'empty result'}
      True
  In previous versions, the second call to `bool()` would return `False`.
- Minor enhancement to Word generation of internal regular expression, to
  emit consecutive characters in range, such as "ab", as "ab", not "a-b".
- Fixed character ranges for search terms using non-Western characters
  in booleansearchparser, PR submitted by tc-yu, nice work!
- Additional type annotations on public methods.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/packages/python3-pyparsing
lfs/python3-pyparsing