Skip to content

Commit 34a8851

Browse files
Fix make_corpus warning message (#284)
Currently, the warning message is specified using logging.warn rather than logging.warning and the former is deprecated. This patch also adds appropriate spacing and fixes spelling to make the message appear as intended.
1 parent aca7c4e commit 34a8851

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

compiler_opt/tools/make_corpus.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@
4242

4343

4444
def main(_):
45-
logging.warn('Using this tool does not guarnatee that the bitcode is taken at'
46-
'the correct stage for consumption during model training. Make'
47-
'sure to validate assumptions about where the bitcode is coming'
48-
'from before using it in production.')
45+
logging.warning(
46+
'Using this tool does not guarantee that the bitcode is taken at '
47+
'the correct stage for consumption during model training. Make '
48+
'sure to validate assumptions about where the bitcode is coming '
49+
'from before using it in production.')
4950
relative_paths = make_corpus_lib.load_bitcode_from_directory(FLAGS.input_dir)
5051
make_corpus_lib.copy_bitcode(relative_paths, FLAGS.input_dir,
5152
FLAGS.output_dir)

0 commit comments

Comments
 (0)