mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 12:54:29 +08:00
Merge pull request #170 from pjvandehaar/master
Show path in warning message
This commit is contained in:
@@ -187,7 +187,7 @@ def try_to_save_module(hashed_grammar, file_io, module, lines, pickling=True, ca
|
|||||||
# file system. It's still in RAM in that case. However we should
|
# file system. It's still in RAM in that case. However we should
|
||||||
# still warn the user that this is happening.
|
# still warn the user that this is happening.
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
'Tried to save a file to %s, but got permission denied.',
|
'Tried to save a file to %s, but got permission denied.' % path,
|
||||||
Warning
|
Warning
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user