summaryrefslogtreecommitdiff
path: root/sphinx/builders/html.py
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-03-17 12:49:36 -0700
committerJon Dufresne <jon.dufresne@gmail.com>2019-03-17 12:58:03 -0700
commitf210475489fe7f8f9fffbb68f7199bcd271ac0be (patch)
treecf41f36b12144b3cf614030dd047f138bf6b5a86 /sphinx/builders/html.py
parent42c8fbd6f30d040683a56277ba59732c028623ab (diff)
downloadsphinx-git-f210475489fe7f8f9fffbb68f7199bcd271ac0be.tar.gz
Python-3-only clean ups discovered by pyupgrade
https://github.com/asottile/pyupgrade > A tool to automatically upgrade syntax for newer versions of the > language. - Drop u str prefix - Drop base object inheritance - Drop args to super() - Use set literals - Use dict comprehension - Use set comprehension
Diffstat (limited to 'sphinx/builders/html.py')
-rw-r--r--sphinx/builders/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py
index 2c5ebcd4d..3f167d0d3 100644
--- a/sphinx/builders/html.py
+++ b/sphinx/builders/html.py
@@ -187,7 +187,7 @@ class BuildInfo:
self.tags_hash = ''
if config:
- values = dict((c.name, c.value) for c in config.filter(config_categories))
+ values = {c.name: c.value for c in config.filter(config_categories)}
self.config_hash = get_stable_hash(values)
if tags: