File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,10 +152,7 @@ impl PySequence<'_> {
152152 return Ok ( ret) ;
153153 }
154154 }
155- Err ( vm. new_type_error ( format ! (
156- "'{}' object can't be repeated" ,
157- self . obj. class( )
158- ) ) )
155+ Err ( vm. new_type_error ( format ! ( "'{}' object can't be repeated" , self . obj. class( ) ) ) )
159156 }
160157
161158 pub fn inplace_concat ( & self , other : & PyObject , vm : & VirtualMachine ) -> PyResult {
@@ -193,10 +190,7 @@ impl PySequence<'_> {
193190 return Ok ( ret) ;
194191 }
195192 }
196- Err ( vm. new_type_error ( format ! (
197- "'{}' object can't be repeated" ,
198- self . obj. class( )
199- ) ) )
193+ Err ( vm. new_type_error ( format ! ( "'{}' object can't be repeated" , self . obj. class( ) ) ) )
200194 }
201195
202196 pub fn get_item ( & self , i : isize , vm : & VirtualMachine ) -> PyResult {
@@ -241,10 +235,7 @@ impl PySequence<'_> {
241235 } ;
242236 mapping. subscript ( & slice. into_object ( vm) , vm)
243237 } else {
244- Err ( vm. new_type_error ( format ! (
245- "'{}' object is unsliceable" ,
246- self . obj. class( )
247- ) ) )
238+ Err ( vm. new_type_error ( format ! ( "'{}' object is unsliceable" , self . obj. class( ) ) ) )
248239 }
249240 }
250241
You can’t perform that action at this time.
0 commit comments