Fix wrong argument for resource creation.
Within the resource class its asumed that urn is a Urn instance and not a str. Unwrapping the path here gives an exception at least in write_to(). Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
This commit is contained in:
		
							parent
							
								
									133a5453cc
								
							
						
					
					
						commit
						772c6e561e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -644,7 +644,7 @@ class Client(object): | ||||||
| 
 | 
 | ||||||
|     def resource(self, remote_path): |     def resource(self, remote_path): | ||||||
|         urn = Urn(remote_path) |         urn = Urn(remote_path) | ||||||
|         return Resource(self, urn.path()) |         return Resource(self, urn) | ||||||
| 
 | 
 | ||||||
|     def push(self, remote_directory, local_directory): |     def push(self, remote_directory, local_directory): | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue