diff options
author | Tal Einat <taleinat+github@gmail.com> | 2018-07-06 13:17:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 13:17:38 +0300 |
commit | c929df3b96c8d7e7977e581431192be21cdafd19 (patch) | |
tree | 0a6bf2366a1b3319cc1b4f5b36b5d1d7260560a2 /Objects/bytes_methods.c | |
parent | 7943c5e8b525694b837d097d0fcce5097efc5626 (diff) | |
download | cpython-git-c929df3b96c8d7e7977e581431192be21cdafd19.tar.gz |
bpo-20180: complete AC conversion of Objects/stringlib/transmogrify.h (GH-8039)
* converted bytes methods: expandtabs, ljust, rjust, center, zfill
* updated char_convertor to properly set the C default value
Diffstat (limited to 'Objects/bytes_methods.c')
-rw-r--r-- | Objects/bytes_methods.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Objects/bytes_methods.c b/Objects/bytes_methods.c index 07842f7469..05679e31c9 100644 --- a/Objects/bytes_methods.c +++ b/Objects/bytes_methods.c @@ -845,33 +845,3 @@ _Py_bytes_endswith(const char *str, Py_ssize_t len, PyObject *args) { return _Py_bytes_tailmatch(str, len, "endswith", args, +1); } - -PyDoc_STRVAR_shared(_Py_expandtabs__doc__, -"B.expandtabs(tabsize=8) -> copy of B\n\ -\n\ -Return a copy of B where all tab characters are expanded using spaces.\n\ -If tabsize is not given, a tab size of 8 characters is assumed."); - -PyDoc_STRVAR_shared(_Py_ljust__doc__, -"B.ljust(width[, fillchar]) -> copy of B\n" -"\n" -"Return B left justified in a string of length width. Padding is\n" -"done using the specified fill character (default is a space)."); - -PyDoc_STRVAR_shared(_Py_rjust__doc__, -"B.rjust(width[, fillchar]) -> copy of B\n" -"\n" -"Return B right justified in a string of length width. Padding is\n" -"done using the specified fill character (default is a space)"); - -PyDoc_STRVAR_shared(_Py_center__doc__, -"B.center(width[, fillchar]) -> copy of B\n" -"\n" -"Return B centered in a string of length width. Padding is\n" -"done using the specified fill character (default is a space)."); - -PyDoc_STRVAR_shared(_Py_zfill__doc__, -"B.zfill(width) -> copy of B\n" -"\n" -"Pad a numeric string B with zeros on the left, to fill a field\n" -"of the specified width. B is never truncated."); |