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

Refactor comtypes.client._generate.GetModule #300

Merged
merged 18 commits into from
Jun 18, 2022

Conversation

junkmd
Copy link
Collaborator

@junkmd junkmd commented Jun 11, 2022

client.GetModule is one of the most used functions in comtypes, but the implemented code is quite a lot of lines.

Therefore, I have refactored it by splitting functions according to their roles.

And from the point of view of #114 by @vijairaj,

the code is buffered in to StringIO before making it to the file and if there's an interruption in between, it would not make it to the file and result in an incomplete file
#114 (comment)

so I fixed the timing of when the generated code is written to the file.

vasily-v-ryabov added a commit to vasily-v-ryabov/pywinauto that referenced this pull request Jun 14, 2022
@junkmd
Copy link
Collaborator Author

junkmd commented Jun 16, 2022

@vasily-v-ryabov

Your AppVeyor tests have been successful (except for reportlab installation failed in Python 3.6).
Do you have any concerns with this PR?

@vasily-v-ryabov vasily-v-ryabov merged commit 893c805 into enthought:master Jun 18, 2022
@vasily-v-ryabov
Copy link
Collaborator

All is fine. I was busy/overloaded last 2 weeks. My students were preparing their master's degree presentations about their work on pywinauto. :)

@junkmd junkmd deleted the refactor_client_generate branch June 18, 2022 16:43
@junkmd
Copy link
Collaborator Author

junkmd commented Jun 18, 2022

@vasily-v-ryabov
Ok.
Thanks for taking the time out of your busy schedule to review this.

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.

2 participants