summaryrefslogtreecommitdiff
path: root/src/flake8/api
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2021-03-29 17:43:42 -0700
committerAnthony Sottile <asottile@umich.edu>2021-03-30 17:37:13 -0700
commit358ae85120b5336f6abf574688b1f7290b3c8cc4 (patch)
treeb19e95f7eac533e223fd20950c99f67f92f9df10 /src/flake8/api
parent8cc3fc01e8d06b2eb6fa59332b598b2c638a4d40 (diff)
downloadflake8-358ae85120b5336f6abf574688b1f7290b3c8cc4.tar.gz
automatic: pyupgrade --py36-plus
Diffstat (limited to 'src/flake8/api')
-rw-r--r--src/flake8/api/legacy.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flake8/api/legacy.py b/src/flake8/api/legacy.py
index 7923698..f046b5c 100644
--- a/src/flake8/api/legacy.py
+++ b/src/flake8/api/legacy.py
@@ -60,7 +60,7 @@ def get_style_guide(**kwargs):
return StyleGuide(application)
-class StyleGuide(object):
+class StyleGuide:
"""Public facing object that mimic's Flake8 2.0's StyleGuide.
.. note::
@@ -170,7 +170,7 @@ class StyleGuide(object):
return self.check_files([filename])
-class Report(object):
+class Report:
"""Public facing object that mimic's Flake8 2.0's API.
.. note::
@@ -210,6 +210,6 @@ class Report(object):
list
"""
return [
- "{} {} {}".format(s.count, s.error_code, s.message)
+ f"{s.count} {s.error_code} {s.message}"
for s in self._stats.statistics_for(violation)
]