mirror of
				https://github.com/Thor77/TeamspeakStats.git
				synced 2025-11-03 15:22:45 -05:00 
			
		
		
		
	Exclude version-key from iter and len
This commit is contained in:
		
							parent
							
								
									7b3ecb039b
								
							
						
					
					
						commit
						ff22ed86f2
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -106,7 +106,7 @@ class Cache(MutableMapping):
 | 
			
		|||
        del self.store[path]
 | 
			
		||||
 | 
			
		||||
    def __iter__(self):
 | 
			
		||||
        return iter(self.store.keys())
 | 
			
		||||
        return iter(self.store.keys() - ['version'])
 | 
			
		||||
 | 
			
		||||
    def __len__(self):
 | 
			
		||||
        return len(self.store)
 | 
			
		||||
        return len(self.store.keys() - ['version'])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue