Closed kieran-github closed 4 years ago
Had some issues with the CI, i see there's a history of it failing for 3.3 - also fixed it - see: https://github.com/travis-ci/travis-ci/issues/9133.
Hi
Thank you very much for your PR! This is the best PR I've received so far I think :)
I would like to request two changes prior to merging, if you could implement them I will certainly merge this code.
user_agent
as a parameter for several functions, for example enumerate_file_hash
. This parameter does not seem to be used, could you remove it from the kwargs variables and from the function definitions? There may be something I'm missing here, let me know if the variable is necessary! It's been a while since I've looked at this code. I'll leave you a note on all the functions I see this happening in.I don't know why I can't see the travis integration on this PR, I'll have a look and see.
Thanks! Pedro
@droope See the updated changes. I removed it from all kwargs https://github.com/droope/droopescan/blob/master/dscan/plugins/internal/base_plugin_internal.py#L138. I had to remove two test cases as user_agent isn't part of call_args even though it is being used in https://github.com/droope/droopescan/blob/master/dscan/plugins/internal/base_plugin_internal.py#L237 (requests session initialization) . However it greatly simplifies the change and still passes all test cases otherwise the user_agent kwargs key will stay throughout the program without being used - i think this is our best option.
Also updated the ci to no longer use python 3.3 as it is EOL, as you mentioned. Unsure why it isn't being hooked to my commits however.
Thank you very much for this change, it looks good, and I know lots of people wanted it. I am going to merge it right in to the development branch.
It may be a little while before I am able to publish a new version, but I will do it as soon as I can.
Thanks! Pedro
I merged this into master! I noted your contribution on the changelog as well. https://github.com/droope/droopescan/blob/master/CHANGELOG
Hi,
Here is a pull request that fixes #40 .
Please have a review and let me know what you think.