mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	python: Convert more "".format to Python 3.6 f-strings.
Generated by pyupgrade --py36-plus --keep-percent-format. Now including %d, %i, %u, and multi-line strings. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							4aeb02f73d
						
					
				
				
					commit
					57a80856a5
				
			@@ -447,17 +447,14 @@ class Config:
 | 
			
		||||
                    You must specify a virtual_parent if you are
 | 
			
		||||
                    using id_source.''')
 | 
			
		||||
            if self.id_source[0] != self.virtual_parent.table:
 | 
			
		||||
                raise AssertionError('''
 | 
			
		||||
                    Configuration error.  To populate {}, you
 | 
			
		||||
                    want data from {}, but that differs from
 | 
			
		||||
                    the table name of your virtual parent ({}),
 | 
			
		||||
                raise AssertionError(f'''
 | 
			
		||||
                    Configuration error.  To populate {self.table}, you
 | 
			
		||||
                    want data from {self.id_source[0]}, but that differs from
 | 
			
		||||
                    the table name of your virtual parent ({self.virtual_parent.table}),
 | 
			
		||||
                    which suggests you many not have set up
 | 
			
		||||
                    the ordering correctly.  You may simply
 | 
			
		||||
                    need to assign a virtual_parent, or there
 | 
			
		||||
                    may be deeper issues going on.'''.format(
 | 
			
		||||
                    self.table,
 | 
			
		||||
                    self.id_source[0],
 | 
			
		||||
                    self.virtual_parent.table))
 | 
			
		||||
                    may be deeper issues going on.''')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def export_from_config(response: TableData, config: Config, seed_object: Optional[Any]=None,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user