From 6dca60aef23e264fb13d62cb81d7cc624150b29c Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 30 Jul 2020 15:15:21 +0300 Subject: [PATCH] Fix duplicate argument --- setup.py | 4 +++- trains/backend_interface/model.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 4a319f7e..abf6fbea 100644 --- a/setup.py +++ b/setup.py @@ -7,10 +7,12 @@ import os.path # Always prefer setuptools over distutils from setuptools import setup, find_packages + def read_text(filepath): - with open(filepath, "r") as f: + with open(filepath, "r", encoding="utf-8") as f: return f.read() + here = os.path.dirname(__file__) # Get the long description from the README file long_description = read_text(os.path.join(here, 'README.md')) diff --git a/trains/backend_interface/model.py b/trains/backend_interface/model.py index 9ffd6ec1..abfa16b1 100644 --- a/trains/backend_interface/model.py +++ b/trains/backend_interface/model.py @@ -191,7 +191,6 @@ class Model(IdObjectBase, AsyncManagerMixin, _StorageUriMixin): parent = parent_id or self.data.parent self._edit( - model=self.id, uri=uri, name=name, comment=comment,