(self)
return (self.cleanpath(host_dir), self.cleanpath(cont_dir))
Split volume string host_path:container_path into list
Split volume string host_path:container_path into list
Split volume string host_path : container_path into list
def split(self):
        """Split volume string host_path:container_path into list"""
        try:
            (host_dir, cont_dir) = self.volume.split(":", 1)
            if not cont_dir:
                cont_dir = host_dir
        except ValueError:
            host_dir = self.volume
            cont_dir = self.volume
        return (self.cleanpath(host_dir), self.cleanpath(cont_dir))
def split ( self ) : try : ( host_dir , cont_dir ) = self . volume . split ( ":" , 1 ) if not cont_dir : cont_dir = host_dir except ValueError : host_dir = self . volume cont_dir = self . volume return ( self . cleanpath ( host_dir ) , self . cleanpath ( cont_dir ) )