|
127 | 127 | error_kind=ERR_MAGIC, |
128 | 128 | ) |
129 | 129 |
|
130 | | -# bytes.rjust(width, fillbyte=b' ') |
| 130 | +# bytes.rjust(width) |
| 131 | +method_op( |
| 132 | + name="rjust", |
| 133 | + arg_types=[bytes_rprimitive, int_rprimitive], |
| 134 | + return_type=bytes_rprimitive, |
| 135 | + c_function_name="CPyBytes_RjustDefaultFill", |
| 136 | + error_kind=ERR_MAGIC, |
| 137 | +) |
| 138 | + |
| 139 | +# bytes.rjust(width, fillbyte) |
131 | 140 | method_op( |
132 | 141 | name="rjust", |
133 | 142 | arg_types=[bytes_rprimitive, int_rprimitive, bytes_rprimitive], |
134 | 143 | return_type=bytes_rprimitive, |
135 | | - c_function_name="CPyBytes_Rjust", |
| 144 | + c_function_name="CPyBytes_RjustCustomFill", |
| 145 | + error_kind=ERR_MAGIC, |
| 146 | +) |
| 147 | + |
| 148 | +# bytes.ljust(width) |
| 149 | +method_op( |
| 150 | + name="ljust", |
| 151 | + arg_types=[bytes_rprimitive, int_rprimitive], |
| 152 | + return_type=bytes_rprimitive, |
| 153 | + c_function_name="CPyBytes_LjustDefaultFill", |
136 | 154 | error_kind=ERR_MAGIC, |
137 | 155 | ) |
138 | 156 |
|
139 | | -# bytes.ljust(width, fillbyte=b' ') |
| 157 | +# bytes.ljust(width, fillbyte) |
140 | 158 | method_op( |
141 | 159 | name="ljust", |
142 | 160 | arg_types=[bytes_rprimitive, int_rprimitive, bytes_rprimitive], |
143 | 161 | return_type=bytes_rprimitive, |
144 | | - c_function_name="CPyBytes_Ljust", |
| 162 | + c_function_name="CPyBytes_LjustCustomFill", |
145 | 163 | error_kind=ERR_MAGIC, |
146 | 164 | ) |
0 commit comments