summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-01-16 12:54:52 -0800
committerAnthony Sottile <asottile@umich.edu>2020-01-16 12:54:52 -0800
commitf4822d87833b12a96987f6d50911c78944b944b5 (patch)
tree702f080b5533e3a9a7c578bd819185cd5a28f798 /src
parentb56c88fe654af09161a66bf81e00481fa5d2d8c5 (diff)
downloadflake8-f4822d87833b12a96987f6d50911c78944b944b5.tar.gz
Fix the type= warning to contain the option name
Diffstat (limited to 'src')
-rw-r--r--src/flake8/options/manager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flake8/options/manager.py b/src/flake8/options/manager.py
index def4c96..13c7969 100644
--- a/src/flake8/options/manager.py
+++ b/src/flake8/options/manager.py
@@ -205,7 +205,8 @@ class Option(object):
LOG.warning(
"option %s: please update from optparse string `type=` to "
"argparse callable `type=` -- this will be an error in the "
- "future"
+ "future",
+ long_option_name,
)
type = _optparse_callable_map[type]