fix generator and range
This commit is contained in:
		
							parent
							
								
									1a3d2fc179
								
							
						
					
					
						commit
						ce1a785484
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -951,7 +951,7 @@ def get_random_string_16():
 | 
			
		|||
    """
 | 
			
		||||
    Create random string of length 16
 | 
			
		||||
    """
 | 
			
		||||
    rng = range(65, 90)
 | 
			
		||||
    rng = list(range(65, 90))
 | 
			
		||||
    rng.extend(range(48, 57))
 | 
			
		||||
    char_sequence = [chr(e) for e in rng]
 | 
			
		||||
    from random import sample
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1415,7 +1415,7 @@ class RosterWindow:
 | 
			
		|||
            yield False
 | 
			
		||||
 | 
			
		||||
        task = _draw_all_contacts(jids, account)
 | 
			
		||||
        GObject.idle_add(task.next)
 | 
			
		||||
        GObject.idle_add(next, task)
 | 
			
		||||
 | 
			
		||||
    def _before_fill(self):
 | 
			
		||||
        self.tree.freeze_child_notify()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue