summaryrefslogtreecommitdiff
path: root/sphinx
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx')
-rw-r--r--sphinx/directives/code.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py
index 7ac9a1c3..cc74566d 100644
--- a/sphinx/directives/code.py
+++ b/sphinx/directives/code.py
@@ -69,7 +69,7 @@ def literalinclude_directive(name, arguments, options, content, lineno,
fn = path.normpath(path.join(source_dir, rel_fn))
fromline = toline = None
- objectname = options.get('object')
+ objectname = options.get('pyobject')
if objectname is not None:
from sphinx.pycode import ModuleAnalyzer
analyzer = ModuleAnalyzer.for_file(fn, '')
@@ -109,7 +109,7 @@ def literalinclude_directive(name, arguments, options, content, lineno,
literalinclude_directive.options = {'linenos': directives.flag,
'language': directives.unchanged_required,
'encoding': directives.encoding,
- 'object': directives.unchanged_required,
+ 'pyobject': directives.unchanged_required,
#'lines': directives.unchanged_required,
#'start-after': directives.unchanged_required,
#'end-before': directives.unchanged_required,