summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIan Lee <IanLee1521@gmail.com>2016-05-31 11:10:52 -0700
committerIan Lee <IanLee1521@gmail.com>2016-05-31 11:10:52 -0700
commitf8bd6939d42037287f17ac3b048bdbdf0f2dd1b5 (patch)
treedf442834f482573b26b054f0840cb7ec62610b14 /docs
parent53da847c91b277491ef542ef53586e54cf7f4942 (diff)
downloadpep8-f8bd6939d42037287f17ac3b048bdbdf0f2dd1b5.tar.gz
Updated docs to remove another pep8 based reference
Diffstat (limited to 'docs')
-rw-r--r--docs/advanced.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/advanced.rst b/docs/advanced.rst
index 6adb2cb..fd3cf3e 100644
--- a/docs/advanced.rst
+++ b/docs/advanced.rst
@@ -68,7 +68,7 @@ through a custom wrapper for the PEP 8 library::
LINES_SLICE = slice(14, -20)
- class PEP8(pycodestyle.StyleGuide):
+ class StyleGuide(pycodestyle.StyleGuide):
"""This subclass of pycodestyle.StyleGuide will skip the first and last lines
of each file."""
@@ -77,11 +77,11 @@ through a custom wrapper for the PEP 8 library::
assert line_offset == 0
line_offset = LINES_SLICE.start or 0
lines = pycodestyle.readlines(filename)[LINES_SLICE]
- return super(PEP8, self).input_file(
+ return super(StyleGuide, self).input_file(
filename, lines=lines, expected=expected, line_offset=line_offset)
if __name__ == '__main__':
- style = PEP8(parse_argv=True, config_file=True)
+ style = StyleGuide(parse_argv=True, config_file=True)
report = style.check_files()
if report.total_errors:
raise SystemExit(1)