Skip to content

Improve documents for Connection class arguments use_unicode and charset #345

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

Merged
merged 2 commits into from
Mar 19, 2019

Conversation

windmgc
Copy link
Contributor

@windmgc windmgc commented Mar 18, 2019

Hi, this pull request aims for improving documents for Connection class arguments use_unicode and charset:

  • Removing redundant words in use_unicode
  • Add more explanation for these two args. I think we should tell developers why use_unicode is set to False on Python 2 and True on Python 3 by default, and the fact that charset does not imply use_unicode but changes its default value. The world implies might be misleading for developers who did not see the code.

OT I noticed that the upstream project https://github.com/farcepest/MySQLdb1 hasn't been updated for a long time(maybe not in maintenance, sad), so I decided to pull request here :)

@codecov
Copy link

codecov bot commented Mar 18, 2019

Codecov Report

Merging #345 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #345   +/-   ##
=======================================
  Coverage   87.14%   87.14%           
=======================================
  Files          13       13           
  Lines        1556     1556           
=======================================
  Hits         1356     1356           
  Misses        200      200
Impacted Files Coverage Δ
MySQLdb/connections.py 82.99% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a67ae2...c9f0ec3. Read the comment docs.

@codecov
Copy link

codecov bot commented Mar 18, 2019

Codecov Report

Merging #345 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #345   +/-   ##
=======================================
  Coverage   87.14%   87.14%           
=======================================
  Files          13       13           
  Lines        1556     1556           
=======================================
  Hits         1356     1356           
  Misses        200      200
Impacted Files Coverage Δ
MySQLdb/connections.py 82.99% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a67ae2...febb934. Read the comment docs.

@methane methane merged commit e52812f into PyMySQL:master Mar 19, 2019
@windmgc windmgc deleted the dev branch March 20, 2019 03:11
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