Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

func_disable_linebased.py 705B

1234567891011121314
  1. # This is a very very very very very very very very very very very very very very very very very very very very very long line.
  2. # pylint: disable=line-too-long
  3. """Make sure enable/disable pragmas work for messages that are applied to lines and not syntax nodes.
  4. A disable pragma for a message that applies to nodes is applied to the whole
  5. block if it comes before the first statement (excluding the docstring). For
  6. line-based messages, this behavior needs to be altered to really only apply to
  7. the enclosed lines.
  8. """
  9. # pylint: enable=line-too-long
  10. from __future__ import print_function
  11. print('This is a very long line which the linter will warn about, now that line-too-long has been enabled again.')