Fix E712 flake8 warning (x1).

This commit is contained in:
Aymeric Augustin
2019-12-21 17:58:17 +01:00
parent f9c5317db2
commit 357db7098c

View File

@@ -334,7 +334,7 @@ def load_and_cache_examples(args, task, tokenizer, evaluate=False, test=False):
cached_mode = "test"
else:
cached_mode = "train"
assert (evaluate == True and test == True) == False
assert not (evaluate and test)
cached_features_file = os.path.join(
args.data_dir,
"cached_{}_{}_{}_{}".format(