Skip to content

Commit

Permalink
docs: remove workaround for sphinx-doc/sphinx#1503.
Browse files Browse the repository at this point in the history
  • Loading branch information
geertj committed Jul 3, 2015
1 parent 5c8c430 commit b7ecc4e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion doc-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx
sphinx >= 1.3.1
mock
six
8 changes: 0 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ def process_signature(app, what, name, obj, options, sig, retann):
if 'my-show-inheritance' not in options:
options['my-show-inheritance'] = options.get('show-inheritance')
options['show-inheritance'] = False
# This is another gross hack. Square brackets are used by the "method"
# directive to denote optional parameters. The parser in Sphinx splits the
# arguments by ','. If an argument looks like "foo=[]", it would be
# recognizes as an argument "header=" and an empty group. As an ugly hack,
# insert a non-printable character (ascii 1F = unit separator), so that our
# argument does not end with ']'. See Sphinx issue #1503
if sig and '[]' in sig:
return (sig.replace('[]', '[]\x1f'), retann)

done = set()

Expand Down

0 comments on commit b7ecc4e

Please sign in to comment.