diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-22 15:56:57 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-22 15:56:57 +0900 |
commit | 218c84cba54803765eceaf399dab8c53578b7503 (patch) | |
tree | 1f0d6c1b4d028c74510aa018ded696370732e4a8 /sphinx/pycode/parser.py | |
parent | e0abf8ca5432b225a47ccb45c433d5df10d10a59 (diff) | |
parent | 4148207756df2792a80aead73b68c326391f7dfb (diff) | |
download | sphinx-git-218c84cba54803765eceaf399dab8c53578b7503.tar.gz |
Merge pull request #6906 from kpnr/patch-1
Update parser.py
Diffstat (limited to 'sphinx/pycode/parser.py')
-rw-r--r-- | sphinx/pycode/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py index 534f2310a..f3b8d1108 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -479,7 +479,7 @@ class Parser: def parse_comments(self) -> None: """Parse the code and pick up comments.""" - tree = ast.parse(self.code.encode()) + tree = ast.parse(self.code) picker = VariableCommentPicker(self.code.splitlines(True), self.encoding) picker.visit(tree) self.comments = picker.comments |