Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-117348: Refactored RawConfigParser._read for simplicity and comprehensibility #117372

Merged

Commits on Mar 29, 2024

  1. Configuration menu
    Copy the full SHA
    a25ac00 View commit details
    Browse the repository at this point in the history
  2. Extract method for _raise_all and yield ParseErrors from _read_inner.

    Reduces complexity by 1 and reduces touch points for handling errors in _read_inner.
    jaraco committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    1e69aae View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8c47781 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7479814 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a2fffee View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    23468cb View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3d1ef0a View commit details
    Browse the repository at this point in the history
  8. Reindent

    jaraco committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    071baeb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    81f4ce2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8942cc1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    1e72168 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0dfd797 View commit details
    Browse the repository at this point in the history
  13. Remove unreachable branch

    jaraco committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    77ed897 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    76f42d3 View commit details
    Browse the repository at this point in the history
  15. Add blurb

    jaraco committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    c18a2bb View commit details
    Browse the repository at this point in the history
  16. Move _raise_all to ParsingError, as its behavior is most closely rela…

    …ted to the exception class and not the reader.
    jaraco committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    97aa785 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    d310cb4 View commit details
    Browse the repository at this point in the history
  18. Refactor _strip_full to compute the strip just once and use 'not any'…

    … to determine the factor.
    jaraco committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    f2a355c View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    2492614 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    4968591 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    7d807bb View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    29cb20f View commit details
    Browse the repository at this point in the history
  23. Use a regular expression to search for the first match.

    Avoids mutating variables and tricky logic and over-computing all of the starts when only the first is relevant.
    jaraco committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    c834c35 View commit details
    Browse the repository at this point in the history