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

parser: allow (UTC prefix in TzInfoParser #1099

Merged
merged 4 commits into from
Aug 30, 2022

Conversation

priv-kweihmann
Copy link
Contributor

Pull Request Checklist

Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:

  • [x ] 🧪 Added tests for changed code.
  • 🛠️ All tests pass when run locally (run tox or make test to find out!).
  • 🧹 All linting checks pass when run locally (run tox -e lint or make lint to find out!).
  • 📚 Updated documentation for changed code.
  • ⏩ Code is up-to-date with the master branch.

If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!

Description of Changes

allow (UTC prefix in TzInfoParser

Input like '(UTC+01:00) Amsterdam, Berlin...' couldn't be parsed
by the code. Allow (UTC prefixes to the string and also ignore suffixes
to the strings, as remainders are not relevant to the further
computation.
This particular input was the TZ string send by a remote mail server

priv-kweihmann and others added 2 commits March 22, 2022 11:09
Input like '(UTC+01:00) Amsterdam, Berlin...' couldn't be parsed
by the code. Allow (UTC prefixes to the string and also ignore suffixes
to the strings, as remainders are not relevant to the further
computation.

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
@codecov
Copy link

codecov bot commented May 3, 2022

Codecov Report

Merging #1099 (8389fdc) into master (4eb070f) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master     #1099   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines         2325      2325           
  Branches       449       449           
=========================================
  Hits          2325      2325           
Impacted Files Coverage Δ
arrow/parser.py 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@priv-kweihmann
Copy link
Contributor Author

priv-kweihmann commented Aug 22, 2022

@anishnya @jadchaar @krisfremen any feedback on this PR?

@anishnya
Copy link
Member

Hey @priv-kweihmann, sorry for the delay in looking at this. The changes look good to me and I've approved the PR. Just awaiting confirmation from one @jadchaar, @krisfremen, or @systemcatch here.

Copy link
Member

@krisfremen krisfremen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anishnya anishnya merged commit 5f9dfbe into arrow-py:master Aug 30, 2022
morcef pushed a commit to morcef/arrow that referenced this pull request Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants