"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pylint/checkers/stdlib.py" between
pylint-2.13.7.tar.gz and pylint-2.13.8.tar.gz

About: pylint analyzes Python source code looking for bugs and signs of poor quality.

stdlib.py  (pylint-2.13.7):stdlib.py  (pylint-2.13.8)
skipping to change at line 662 skipping to change at line 662
) )
except utils.NoSuchArgumentError: except utils.NoSuchArgumentError:
pass pass
if mode_arg: if mode_arg:
mode_arg = utils.safe_infer(mode_arg) mode_arg = utils.safe_infer(mode_arg)
if ( if (
not mode_arg not mode_arg
or isinstance(mode_arg, nodes.Const) or isinstance(mode_arg, nodes.Const)
and (not mode_arg.value or "b" not in mode_arg.value) and (not mode_arg.value or "b" not in str(mode_arg.value))
): ):
encoding_arg = None encoding_arg = None
try: try:
if open_module == "pathlib": if open_module == "pathlib":
if node.func.attrname == "read_text": if node.func.attrname == "read_text":
encoding_arg = utils.get_argument_from_call( encoding_arg = utils.get_argument_from_call(
node, position=0, keyword="encoding" node, position=0, keyword="encoding"
) )
elif node.func.attrname == "write_text": elif node.func.attrname == "write_text":
encoding_arg = utils.get_argument_from_call( encoding_arg = utils.get_argument_from_call(
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)