mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Fix PY2 compatibility
This commit is contained in:
3
setup.py
3
setup.py
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user