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
This commit is contained in:
Jon Dufresne
2019-03-17 12:49:36 -07:00
committed by Takeshi KOMIYA
parent 33ba281e0a
commit 22afc77c48
30 changed files with 72 additions and 76 deletions

View File

@@ -79,7 +79,7 @@ function splitQuery(query) {
}
''' % (fold(singles, ','), fold(ranges, '],'))
js_test_src = u'''
js_test_src = '''
// This is regression test for https://github.com/sphinx-doc/sphinx/issues/3150
// generated by compat_regexp_generator.py
// it needs node.js for testing