Support instance of pathlib.PosixPath as artifact URI (#3468)
Support instance of pathlib.PosixPath as artifact URI (#3468)

Passing an instance of `pathlib.PosixPath` to the `artifacts` attribute of `save_model` results in an `AttributeError: 'PosixPath' object has no attribute 'decode'` exception being thrown by `urllib`.

Explicit conversion to string overcomes this problem. I wonder whether this could be added to `mlflow` directly.

Signed-off-by: Ghislain Vaillant <9acb10e6288befcba94ca37c494a5b648a53661d@gmail.com>
mlflow/mlflow,mlflow/mlflow,mlflow/mlflow,mlflow/mlflow,mlflow/mlflow,mlflow/mlflow,mlflow/mlflow