@@ -509,13 +509,13 @@ def update(self, col=None, **kw):
509509 tup = tuple (tup )
510510 except TypeError :
511511 raise TypeError (
512- f 'cannot convert map update '
513- f 'sequence element #{ i } to a sequence' ) from None
512+ 'cannot convert map update '
513+ 'sequence element #{} to a sequence' . format ( i ) ) from None
514514 key , val , * r = tup
515515 if r :
516516 raise ValueError (
517- f 'map update sequence element #{ i } has length '
518- f' { len ( r ) + 2 } ; 2 is required' )
517+ 'map update sequence element #{} has length '
518+ '{ }; 2 is required'. format ( i , len ( r ) + 2 ) )
519519
520520 root , added = root .assoc (0 , map_hash (key ), key , val , mutid )
521521 if added :
@@ -642,7 +642,7 @@ def __exit__(self, *exc):
642642
643643 def __delitem__ (self , key ):
644644 if self .__mutid == 0 :
645- raise ValueError (f 'mutation { self !r} has been finalized' )
645+ raise ValueError ('mutation {!r} has been finalized' . format ( self ) )
646646
647647 res , new_root = self .__root .without (
648648 0 , map_hash (key ), key , self .__mutid )
@@ -657,7 +657,7 @@ def __delitem__(self, key):
657657
658658 def __setitem__ (self , key , val ):
659659 if self .__mutid == 0 :
660- raise ValueError (f 'mutation { self !r} has been finalized' )
660+ raise ValueError ('mutation {!r} has been finalized' . format ( self ) )
661661
662662 self .__root , added = self .__root .assoc (
663663 0 , map_hash (key ), key , val , self .__mutid )
@@ -667,7 +667,7 @@ def __setitem__(self, key, val):
667667
668668 def pop (self , key , * args ):
669669 if self .__mutid == 0 :
670- raise ValueError (f 'mutation { self !r} has been finalized' )
670+ raise ValueError ('mutation {!r} has been finalized' . format ( self ) )
671671
672672 if len (args ) > 1 :
673673 raise TypeError (
@@ -723,7 +723,7 @@ def __len__(self):
723723 return self .__count
724724
725725 def __hash__ (self ):
726- raise TypeError (f 'unhashable type: { type (self ).__name__ } ' )
726+ raise TypeError ('unhashable type: {}' . format ( type (self ).__name__ ) )
727727
728728 def __eq__ (self , other ):
729729 if not isinstance (other , MapMutation ):
0 commit comments