-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from 2018-11-27/master
1.2.1
- Loading branch information
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
──────────────────────────────────────────────────────────────────────────────── | ||
Copyright (c) 2022-2024 GQYLPY <http://gqylpy.com>. All rights reserved. | ||
@version: 1.2 | ||
@version: 1.2.1 | ||
@author: 竹永康 <[email protected]> | ||
@source: https://github.com/gqylpy/systempath | ||
|
@@ -1859,8 +1859,8 @@ def __init__(self, file: File, /): | |
|
||
def read( | ||
self, | ||
encoding: Optional[str] = None, | ||
*, | ||
encoding: Optional[str] = None, | ||
defaults: Optional[Mapping[str, str]] = None, | ||
dict_type: Optional[Type[Mapping[str, str]]] = None, | ||
allow_no_value: Optional[bool] = None, | ||
|
@@ -1891,8 +1891,8 @@ class CSV: | |
"w". | ||
@param encoding | ||
Specify the output encoding, usually specified as "UTF-8". The default | ||
encoding is based on the platform, call | ||
Specify the encoding for opening the file, usually specified as "UTF-8". | ||
The default encoding is based on the platform, call | ||
`locale.getpreferredencoding(False)` to get the current locale encoding. | ||
See the `codecs` module for a list of supported encodings. | ||
|
@@ -1943,6 +1943,7 @@ def reader( | |
self, | ||
dialect: Optional[CSVDialectLike] = None, | ||
*, | ||
encoding: Optional[str] = None, | ||
delimiter: Optional[str] = None, | ||
quotechar: Optional[str] = None, | ||
escapechar: Optional[str] = None, | ||
|
@@ -2017,6 +2018,12 @@ class JSON: | |
The Python object you want to convert to JSON format and write to the | ||
file. | ||
@param encoding | ||
Specify the encoding for opening the file, usually specified as "UTF-8". | ||
The default encoding is based on the platform, call | ||
`locale.getpreferredencoding(False)` to get the current locale encoding. | ||
See the `codecs` module for a list of supported encodings. | ||
@param skipkeys | ||
If True (default is False), dictionary keys that are not of a basic | ||
type (str, int, float, bool, None) will be skipped during the encoding | ||
|
@@ -2072,6 +2079,7 @@ def dump( | |
self, | ||
obj: Any, | ||
*, | ||
encoding: Optional[str] = None, | ||
skipkeys: Optional[bool] = None, | ||
ensure_ascii: Optional[bool] = None, | ||
check_circular: Optional[bool] = None, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters