@@ -277,7 +277,7 @@ int doSingle(VirtualFrame frame, PMMap self, Object idxObj,
277277 return res ;
278278
279279 } catch (IOException e ) {
280- throw raise (PythonBuiltinClassType .OSError , e . getMessage ());
280+ throw raise (PythonBuiltinClassType .OSError , getMessage (e ));
281281 }
282282 }
283283
@@ -301,7 +301,7 @@ Object doSlice(VirtualFrame frame, PMMap self, PSlice idx,
301301
302302 return factory ().createBytes (s );
303303 } catch (IOException e ) {
304- throw raise (PythonBuiltinClassType .OSError , e . getMessage ());
304+ throw raise (PythonBuiltinClassType .OSError , getMessage (e ));
305305 }
306306 }
307307
@@ -344,7 +344,7 @@ PNone doSingle(VirtualFrame frame, PMMap self, Object idxObj, Object val,
344344 return PNone .NONE ;
345345
346346 } catch (IOException e ) {
347- throw raise (PythonBuiltinClassType .OSError , e . getMessage ());
347+ throw raise (PythonBuiltinClassType .OSError , getMessage (e ));
348348 }
349349 }
350350
@@ -376,7 +376,7 @@ PNone doSlice(VirtualFrame frame, PMMap self, PSlice idx, PIBytesLike val,
376376 return PNone .NONE ;
377377
378378 } catch (IOException e ) {
379- throw raise (PythonBuiltinClassType .OSError , e . getMessage ());
379+ throw raise (PythonBuiltinClassType .OSError , getMessage (e ));
380380 }
381381 }
382382
@@ -468,7 +468,7 @@ long readline(VirtualFrame frame, PMMap self) {
468468 SeekableByteChannel channel = self .getChannel ();
469469 return position (channel ) - self .getOffset ();
470470 } catch (IOException e ) {
471- throw raiseOSError (frame , OSErrorEnum .EIO , e . getMessage ());
471+ throw raiseOSError (frame , OSErrorEnum .EIO , getMessage (e ));
472472 }
473473 }
474474 }
@@ -544,7 +544,7 @@ Object readline(PMMap self,
544544 }
545545 return factory ().createBytes (res );
546546 } catch (IOException e ) {
547- throw raise (PythonBuiltinClassType .OSError , e . getMessage ());
547+ throw raise (PythonBuiltinClassType .OSError , getMessage (e ));
548548 }
549549 }
550550
@@ -626,7 +626,7 @@ Object seek(VirtualFrame frame, PMMap self, long dist, Object how) {
626626 return PNone .NONE ;
627627 } catch (IOException e ) {
628628 errorProfile .enter ();
629- throw raiseOSError (frame , OSErrorEnum .EIO , e . getMessage ());
629+ throw raiseOSError (frame , OSErrorEnum .EIO , getMessage (e ));
630630 }
631631 }
632632
@@ -687,7 +687,7 @@ long find(PMMap primary, PIBytesLike sub, Object starting, Object ending,
687687 }
688688 return -1 ;
689689 } catch (IOException e ) {
690- throw raise (PythonBuiltinClassType .OSError , e . getMessage ());
690+ throw raise (PythonBuiltinClassType .OSError , getMessage (e ));
691691 }
692692 }
693693
@@ -714,7 +714,7 @@ long find(PMMap primary, int sub, Object starting, @SuppressWarnings("unused") O
714714 }
715715 return -1 ;
716716 } catch (IOException e ) {
717- throw raise (PythonBuiltinClassType .OSError , e . getMessage ());
717+ throw raise (PythonBuiltinClassType .OSError , getMessage (e ));
718718 }
719719 }
720720
@@ -752,7 +752,7 @@ long doFull(VirtualFrame frame, PMMap self,
752752 return size (self .getChannel ()) - self .getOffset ();
753753 } catch (IOException e ) {
754754 profile .enter ();
755- throw raiseOSError (frame , OSErrorEnum .EIO , e . getMessage ());
755+ throw raiseOSError (frame , OSErrorEnum .EIO , getMessage (e ));
756756 }
757757 }
758758
@@ -767,7 +767,7 @@ long doGeneric(VirtualFrame frame, PMMap self) {
767767 try {
768768 return size (self .getChannel ()) - self .getOffset ();
769769 } catch (IOException e ) {
770- throw raiseOSError (frame , OSErrorEnum .EIO , e . getMessage ());
770+ throw raiseOSError (frame , OSErrorEnum .EIO , getMessage (e ));
771771 }
772772 }
773773 return self .getLength ();
0 commit comments