mirror of
				https://github.com/Mikaela/Limnoria.git
				synced 2025-11-03 17:17:23 +01:00 
			
		
		
		
	Fixed the __str__ of some Value subclasses.
This commit is contained in:
		
							parent
							
								
									c0dad919d6
								
							
						
					
					
						commit
						2dab520e66
					
				@ -345,6 +345,7 @@ class Regexp(Value):
 | 
			
		||||
                  'between the regexp and the recorded string value.'
 | 
			
		||||
 | 
			
		||||
    def __str__(self):
 | 
			
		||||
        self() # Gotta update if we've been reloaded.
 | 
			
		||||
        return self.sr
 | 
			
		||||
        
 | 
			
		||||
class SeparatedListOf(Value):
 | 
			
		||||
@ -370,8 +371,9 @@ class SeparatedListOf(Value):
 | 
			
		||||
        Value.setValue(self, self.List(v))
 | 
			
		||||
 | 
			
		||||
    def __str__(self):
 | 
			
		||||
        if self.value:
 | 
			
		||||
            return self.joiner(self.value)
 | 
			
		||||
        value = self()
 | 
			
		||||
        if value:
 | 
			
		||||
            return self.joiner(value)
 | 
			
		||||
        else:
 | 
			
		||||
            # We must return *something* here, otherwise down along the road we
 | 
			
		||||
            # can run into issues showing users the value if they've disabled
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user