summaryrefslogtreecommitdiff
path: root/pylint/checkers/logging.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2020-03-19 11:20:05 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2020-03-24 10:27:21 +0100
commita45505143f89718073b7d06c99d09c05cd0e4108 (patch)
treeb5be3d9c6f8a29ec08af5147702c0f99eb549ebc /pylint/checkers/logging.py
parent63bf9dcf39a7dbd86601ef6c6a16eef4768f1e9a (diff)
downloadpylint-git-a45505143f89718073b7d06c99d09c05cd0e4108.tar.gz
pyupgrade: automated removal of python2 constructs
using configuration: ```yaml - repo: https://github.com/asottile/pyupgrade rev: v2.1.0 hooks: - id: pyupgrade args: [--py3-plus, --keep-percent-format] exclude: ^tests/(extensions/data/|functional/|input/|regrtest_data/) ```
Diffstat (limited to 'pylint/checkers/logging.py')
-rw-r--r--pylint/checkers/logging.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pylint/checkers/logging.py b/pylint/checkers/logging.py
index 9f91029d5..9a2ab95d3 100644
--- a/pylint/checkers/logging.py
+++ b/pylint/checkers/logging.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright (c) 2009-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
# Copyright (c) 2009, 2012, 2014 Google, Inc.
# Copyright (c) 2012 Mike Bryant <leachim@leachim.info>
@@ -313,7 +312,7 @@ class LoggingChecker(checkers.BaseChecker):
) = utils.parse_format_method_string(format_string)
keyword_args_cnt = len(
- set(k for k, l in keyword_arguments if not isinstance(k, int))
+ {k for k, l in keyword_arguments if not isinstance(k, int)}
)
required_num_args = (
keyword_args_cnt + implicit_pos_args + explicit_pos_args