Skip to content

Improve documents for Connection class arguments use_unicode and charset#345

Merged
methane merged 2 commits into
PyMySQL:masterfrom
windmgc:dev
Mar 19, 2019
Merged

Improve documents for Connection class arguments use_unicode and charset#345
methane merged 2 commits into
PyMySQL:masterfrom
windmgc:dev

Conversation

@windmgc
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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