Skip to content

Fix up parser.py#414

Merged
ivanpauno merged 8 commits intoros2:masterfrom
rotu:parser
Jun 16, 2020
Merged

Fix up parser.py#414
ivanpauno merged 8 commits intoros2:masterfrom
rotu:parser

Conversation

@rotu
Copy link
Copy Markdown
Contributor

@rotu rotu commented May 6, 2020

  1. always pass a file object to parser implementation. Passing a string introduces no extra expressiveness and the file is not guaranteed to be properly closed.
  2. Use more Pythonic type detection for whether passed object is a string or a file.
  3. Clean up type declarations
  4. Clean up parser ordering logic
  5. Make parser ordering deterministic
  6. Remove use of Ellipsis. It makes the declaration look like a stub.
    Signed-off-by: Dan Rose dan@digilabs.io

1. *always* pass a file object to parser implementation. Passing a string introduces no extra expressiveness and the file is not guaranteed to be properly closed.
2. Use more Pythonic type detection for whether passed object is a string or a file.
3. Clean up type declarations
4. Clean up parser ordering logic
5. Make parser ordering deterministic
6. Remove use of Ellipsis. It makes the declaration look like a stub.
Signed-off-by: Dan Rose <dan@digilabs.io>
@rotu
Copy link
Copy Markdown
Contributor Author

rotu commented May 6, 2020

If this should be split into multiple PRs, please suggest how to split it up.

rotu added 2 commits May 6, 2020 19:46
Signed-off-by: Dan Rose <dan@digilabs.io>
Signed-off-by: Dan Rose <dan@digilabs.io>
Signed-off-by: Dan Rose <dan@digilabs.io>
Copy link
Copy Markdown

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

I presume this includes #415. Nevermind the comments over there, this makes sense to me. @ivanpauno ?

@ivanpauno
Copy link
Copy Markdown
Member

I presume this includes #415

I think that improvements in #415 are orthogonal to the ones here.

@hidmic
Copy link
Copy Markdown

hidmic commented May 14, 2020

I think that improvements in #415 are orthogonal to the ones here.

Same pattern, different packages. You're right, my bad. On a second look, my comment over there was addressed here.

Signed-off-by: Dan Rose <dan@digilabs.io>
Signed-off-by: Dan Rose <dan@digilabs.io>
@sloretz
Copy link
Copy Markdown
Contributor

sloretz commented May 28, 2020

@dirk-thomas @ivanpauno where is this PR at? Is it ready for CI? Is there feedback that still needs to be addressed?

@rotu rotu marked this pull request as draft May 28, 2020 03:06
@rotu
Copy link
Copy Markdown
Contributor Author

rotu commented May 28, 2020

I need to fix the copyrights to say “Open Avatar Inc.” instead of “Rover Robotics ℅ Dan Rose” since Rover Robotics is a dba. I’ll move it out of draft again when I get around to that

Rover Robotics is the trade name (DBA), not the copyright owner.

Signed-off-by: Dan Rose <dan@digilabs.io>
@rotu rotu marked this pull request as ready for review May 28, 2020 21:34
@rotu rotu requested a review from ivanpauno May 28, 2020 21:34
@ivanpauno
Copy link
Copy Markdown
Member

@jacobperron ok to merge this before Foxy relase? should be merge after the release?

@jacobperron
Copy link
Copy Markdown
Member

@ivanpauno Unless you think it's crucial, I'd rather hold until after the rosdistro freeze (May 27th).

@ivanpauno
Copy link
Copy Markdown
Member

ivanpauno commented Jun 8, 2020

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@rotu rotu force-pushed the parser branch 2 times, most recently from 0e2126f to f876b96 Compare June 13, 2020 02:45
Signed-off-by: Dan Rose <dan@digilabs.io>
@rotu rotu force-pushed the parser branch 3 times, most recently from aa5a57f to 5c150d2 Compare June 15, 2020 19:47
@rotu
Copy link
Copy Markdown
Contributor Author

rotu commented Jun 15, 2020

Blech. I struggle with Git sometimes, but I think this is now ready for merge.

@ivanpauno
Copy link
Copy Markdown
Member

  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@ivanpauno
Copy link
Copy Markdown
Member

Failing tests are unrelated, merging!
Thanks for the fix @rotu

@ivanpauno ivanpauno merged commit 0d1c56b into ros2:master Jun 16, 2020
jacobperron pushed a commit that referenced this pull request Sep 10, 2021
Signed-off-by: Dan Rose <dan@digilabs.io>
jacobperron pushed a commit that referenced this pull request Nov 11, 2021
Signed-off-by: Dan Rose <dan@digilabs.io>
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.

6 participants