Fix PY2 compatibility

This commit is contained in:
allegroai
2022-09-13 15:04:49 +03:00
parent bc1a243ecd
commit a18b7b3271
8 changed files with 50 additions and 32 deletions

View File

@@ -6,10 +6,11 @@ https://github.com/allegroai/clearml
import os.path
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
import codecs
def read_text(filepath):
with open(filepath, "r", encoding="utf-8") as f:
with codecs.open(filepath, "r", encoding="utf-8") as f:
return f.read()