diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-07-10 01:20:19 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-07-26 20:51:58 +0900 |
commit | 8683823536505aef3b96627ce9ea4784d5385eb0 (patch) | |
tree | 86ce94d8e4c611d54cadaf60f1e91f8aa4c7e2d6 /sphinx/directives/code.py | |
parent | 6900d19b7126c2719283e88218e10f9e88530a49 (diff) | |
download | sphinx-git-8683823536505aef3b96627ce9ea4784d5385eb0.tar.gz |
pycode: Replace pgen2 by own parser
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r-- | sphinx/directives/code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index 41a593aa3..111f6b189 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -256,7 +256,7 @@ class LiteralIncludeReader(object): else: start = tags[pyobject][1] end = tags[pyobject][2] - lines = lines[start - 1:end - 1] + lines = lines[start - 1:end] if 'lineno-match' in self.options: self.lineno_start = start |