Remove 'config' as parameter from BaseFolder & derivatives
It is possible to get the config parameter from the Repository() which is set in BaseFolder, so we set self.config there and remove the various methods and 'config' parameters that are superfluous. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
		 Sebastian Spaeth
					Sebastian Spaeth
				
			
				
					committed by
					
						 Nicolas Sebrecht
						Nicolas Sebrecht
					
				
			
			
				
	
			
			
			 Nicolas Sebrecht
						Nicolas Sebrecht
					
				
			
						parent
						
							410e2d35e9
						
					
				
				
					commit
					ee75e0921f
				
			| @@ -46,10 +46,9 @@ class LocalStatusSQLiteFolder(LocalStatusFolder): | ||||
|     #current version of our db format | ||||
|     cur_version = 1 | ||||
|  | ||||
|     def __init__(self, root, name, repository, config): | ||||
|     def __init__(self, root, name, repository): | ||||
|         super(LocalStatusSQLiteFolder, self).__init__(root, name,  | ||||
|                                                       repository,  | ||||
|                                                       config)        | ||||
|                                                       repository)        | ||||
|  | ||||
|         # dblock protects against concurrent writes in same connection | ||||
|         self._dblock = Lock() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user