Skip to content

Commit e2eb08b

Browse files
committed
Python: improve messaging
1 parent 22588c9 commit e2eb08b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/extractor/semmle/cmdline.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,17 @@ def parse(command_line):
228228

229229
if 'CODEQL_EXTRACTOR_PYTHON_DONT_EXTRACT_STDLIB' in os.environ:
230230
options.extract_stdlib = False
231-
print ("Warning: CODEQL_EXTRACTOR_PYTHON_DONT_EXTRACT_STDLIB is deprecated; the default is now to not extract the standard library.")
231+
print ("WARNING: CODEQL_EXTRACTOR_PYTHON_DONT_EXTRACT_STDLIB is deprecated; the default is now to not extract the standard library.")
232232

233233
if 'CODEQL_EXTRACTOR_PYTHON_EXTRACT_STDLIB' in os.environ:
234234
options.extract_stdlib = True
235235

236236
options.prune = True
237237

238238
if options.extract_stdlib:
239-
print ("Warning: The analysis will extract the standard library. This behavior is deprecated and will be removed in a future release. We expect it to be gone in CLI version 2.20.0.")
239+
print ("WARNING: The analysis will extract the standard library. This behavior is deprecated and will be removed in a future release. We expect it to be gone in CLI version 2.20.0.")
240+
else:
241+
print ("INFO: The Python extractor has recently stopped extracting the standard library by default. If you encounter problems, please let us know by submitting an issue to https://github.com/github/codeql. It is possible to re-enable extraction of the standard library by setting the environment variable CODEQL_EXTRACTOR_PYTHON_EXTRACT_STDLIB.")
240242

241243
return options, args
242244

0 commit comments

Comments
 (0)