Skip to content

Commit bc659f8

Browse files
committed
fix compatibility with python 3.5.2; convert path to str
1 parent a3a3180 commit bc659f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytorch_pretrained_bert/file_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
2525

26-
PYTORCH_PRETRAINED_BERT_CACHE = Path(os.getenv('PYTORCH_PRETRAINED_BERT_CACHE',
27-
Path.home() / '.pytorch_pretrained_bert'))
26+
PYTORCH_PRETRAINED_BERT_CACHE = str(Path(os.getenv('PYTORCH_PRETRAINED_BERT_CACHE',
27+
Path.home() / '.pytorch_pretrained_bert')))
2828

2929

3030
def url_to_filename(url: str, etag: str = None) -> str:

0 commit comments

Comments
 (0)