summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-02-26 14:50:11 (GMT)
committerGitHub <noreply@github.com>2018-02-26 14:50:11 (GMT)
commit3f2e6f15d64d81633b1fc0b308afc0d6e9026b61 (patch)
tree47fc15490c06e8d49f0750e8aa75352ef17cfc7c /Lib/logging
parent6f600ff1734ca2fdcdd37a809adf8130f0d8cc4e (diff)
downloadcpython-3f2e6f15d64d81633b1fc0b308afc0d6e9026b61.zip
cpython-3f2e6f15d64d81633b1fc0b308afc0d6e9026b61.tar.gz
cpython-3f2e6f15d64d81633b1fc0b308afc0d6e9026b61.tar.bz2
Revert unneccessary changes made in bpo-30296 and apply other improvements. (GH-2624)
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py
index 7927e76..1b0faca 100644
--- a/Lib/logging/config.py
+++ b/Lib/logging/config.py
@@ -460,7 +460,7 @@ class BaseConfigurator(object):
c = self.resolve(c)
props = config.pop('.', None)
# Check for valid identifiers
- kwargs = dict((k, config[k]) for k in config if valid_ident(k))
+ kwargs = {k: config[k] for k in config if valid_ident(k)}
result = c(**kwargs)
if props:
for name, value in props.items():
@@ -723,7 +723,7 @@ class DictConfigurator(BaseConfigurator):
config['address'] = self.as_tuple(config['address'])
factory = klass
props = config.pop('.', None)
- kwargs = dict((k, config[k]) for k in config if valid_ident(k))
+ kwargs = {k: config[k] for k in config if valid_ident(k)}
try:
result = factory(**kwargs)
except TypeError as te: