Skip to content

Commit

Permalink
Merge pull request iterative#2548 from iterative/py27
Browse files Browse the repository at this point in the history
fix py27 compat
  • Loading branch information
efiop authored Sep 30, 2019
2 parents beea7e5 + 1f46ca2 commit f0de362
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dvc/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import unicode_literals

from dvc.utils.compat import str, StringIO
from dvc.utils.compat import str, StringIO, RecursionError
from dvc.progress import Tqdm

import logging
Expand Down
5 changes: 5 additions & 0 deletions dvc/utils/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
# simplified version of ipython_genutils/encoding.py
DEFAULT_ENCODING = sys.getdefaultencoding()

if _ver[:2] < (3, 5):
RecursionError = RuntimeError
else:
RecursionError = RecursionError


def no_code(x, encoding=None):
return x
Expand Down

0 comments on commit f0de362

Please sign in to comment.