Don't pass in 'root' as para to LocalStatusFolders
They have the Repository() which contains the root, so no need to pass it in as an extra parameter. Rename repository.LocalStatus()'s self.directory to self.root for consistency with other backends. 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
						
							ee75e0921f
						
					
				
				
					commit
					80e87d0d99
				
			| @@ -46,10 +46,8 @@ class LocalStatusSQLiteFolder(LocalStatusFolder): | ||||
|     #current version of our db format | ||||
|     cur_version = 1 | ||||
|  | ||||
|     def __init__(self, root, name, repository): | ||||
|         super(LocalStatusSQLiteFolder, self).__init__(root, name,  | ||||
|                                                       repository)        | ||||
|  | ||||
|     def __init__(self, name, repository): | ||||
|         super(LocalStatusSQLiteFolder, self).__init__(name, repository)        | ||||
|         # dblock protects against concurrent writes in same connection | ||||
|         self._dblock = Lock() | ||||
|         #Try to establish connection, no need for threadsafety in __init__ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user