Repository navigation
Remove use of Bio._py3k in BioSql/ - #2440
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2440 +/- ##
==========================================
+ Coverage 84.64% 84.76% +0.12%
==========================================
Files 323 323
Lines 52644 52976 +332
==========================================
+ Hits 44558 44904 +346
+ Misses 8086 8072 -14
Continue to review full report at Codecov.
|
| # read the file with all comment lines removed | ||
| sql = "" | ||
| with open(sql_file, _universal_read_mode) as sql_handle: | ||
| with open(sql_file) as sql_handle: |
There was a problem hiding this comment.
Good - that's exactly what I would have picked here.
peterjc
left a comment
There was a problem hiding this comment.
Looks good - a minor tweak to the new message, and I'd be happy to merge this.
| mysql-connector-python in release 2.0.0 of the package. | ||
| """ | ||
|
|
||
| def bytearray_to_str(self, s): |
There was a problem hiding this comment.
I would suggest making this a private method (change the name to have a leading underscore).
There was a problem hiding this comment.
Also, since you do not need self (it was originally a function), this can be a static method:
https://docs.python.org/3/library/functions.html#staticmethod
Basically add the @staticmethod decorator before the def line, and remove the unused self argument.
|
If you are not comfortable dealing with the merge conflict, don't worry about it - I can do that. |
|
I would love that
I hate merge conflicts.
My machine broke down, gave it for repair. so I would be only able to
contribute after 2-3 days.
…On Fri, 27 Dec 2019, 4:11 a.m. Peter Cock, ***@***.***> wrote:
If you are not comfortable dealing with the merge conflict, don't worry
about it - I can do that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2440?email_source=notifications&email_token=AF7OZ7ZCNODH6A4VXZZ5YQLQ2UVP5A5CNFSM4J7MI7F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHWG5KI#issuecomment-569142953>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF7OZ7ZUA4MUFZVALBY72YLQ2UVP5ANCNFSM4J7MI7FQ>
.
|
Moved bytearray_to_str into MysqlConnectorAdaptor Peter: Made the new method into a staticmethod with a leading underscore (private) as part of rebasing this.
13033fb to
edac94f
Compare
|
I hope your computer is working again soon - for now I have rebased this and added the static method change. |
This pull request addresses issue #2420
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I have read the
CONTRIBUTING.rstfile, have runflake8locally, andunderstand that AppVeyor and TravisCI will be used to confirm the Biopython unit
tests and style checks pass with these changes.
I have added my name to the alphabetical contributors listings in the files
NEWS.rstandCONTRIB.rstas part of this pull request, am listedalready, or do not wish to be listed. (This acknowledgement is optional.)