diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-22 10:07:16 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-06-22 10:07:16 -0500 |
| commit | 601696d5641fea75709f5f8b851c347a9ee0b7cd (patch) | |
| tree | d0f790e30ad937a59aee7ab01150884bfeac18f8 /docs/source | |
| parent | 04bceeceb5424f1a970b349656e31e0c8f9a5fb7 (diff) | |
| download | flake8-601696d5641fea75709f5f8b851c347a9ee0b7cd.tar.gz | |
Trim whitespace from cross-compat plugin docs
Diffstat (limited to 'docs/source')
| -rw-r--r-- | docs/source/dev/cross_compatibility.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/dev/cross_compatibility.rst b/docs/source/dev/cross_compatibility.rst index c546f03..2efadf3 100644 --- a/docs/source/dev/cross_compatibility.rst +++ b/docs/source/dev/cross_compatibility.rst @@ -12,7 +12,7 @@ versions. If your plugin does not register options, it *should* Just Work. -The **only** breaking change in |Flake8| 3.0 is the fact that we no longer +The **only** breaking change in |Flake8| 3.0 is the fact that we no longer check the option parser for a list of strings to parse from a config file. On |Flake8| 2.x, to have an option parsed from the configuration files that |Flake8| finds and parses you would have to do something like: @@ -121,7 +121,7 @@ options with |Flake8| and have it work on |Flake8| 2.x and 3.x. parser.add_option(*option_args, **option_kwargs) if parse_from_config: parser.config_options.append(option_args[-1].lstrip('-')) - + Or, you can write a tiny helper function: |
