Skip to content

Commit 18a276c

Browse files
committed
fix SyntaxWarning in wmt16.py
1 parent 9b1a17a commit 18a276c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/paddle/v2/dataset/wmt16.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ def get_dict(lang, dict_size, reverse=False):
305305

306306
dict_path = os.path.join(paddle.v2.dataset.common.DATA_HOME,
307307
"wmt16/%s_%d.dict" % (lang, dict_size))
308-
assert (os.path.exists(dict_path), "Word dictionary does not exist. "
309-
"Please invoke paddle.dataset.wmt16.train/test/validation "
310-
"first to build the dictionary.")
308+
assert os.path.exists(dict_path), "Word dictionary does not exist. "
309+
"Please invoke paddle.dataset.wmt16.train/test/validation first "
310+
"to build the dictionary."
311311
tar_file = os.path.join(paddle.v2.dataset.common.DATA_HOME, "wmt16.tar.gz")
312312
return __load_dict(tar_file, dict_size, lang, reverse)
313313

0 commit comments

Comments
 (0)