diff options
Diffstat (limited to 'pylint/test/functional/bad_indentation.py')
-rw-r--r-- | pylint/test/functional/bad_indentation.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pylint/test/functional/bad_indentation.py b/pylint/test/functional/bad_indentation.py new file mode 100644 index 0000000..c868aed --- /dev/null +++ b/pylint/test/functional/bad_indentation.py @@ -0,0 +1,20 @@ +# pylint: disable=missing-docstring, pointless-statement +from __future__ import print_function + + +def totoo(): + print('malindented') # [bad-indentation] + +def tutuu(): + print('good indentation') + +def titii(): + 1 # and this. # [bad-indentation] + +def tataa(kdict): + for key in ['1', '2', '3']: + key = key.lower() + + if key in kdict: + del kdict[key] + |