Commits

Anonymous committed 0860ca5

Fixed 2 typos, which were preventing source code from being generated.
(s.f. bug report #1459361, submitted by Wesley Augur)

Comments (0)

Files changed (2)

epydoc/src/epydoc/docwriter/html.py

         """How should inheritance be displayed?  'listed', 'included',
         or 'grouped'"""
 
-        self._incl_sourcecode = kwargs.get('include_soucre_code', True)
+        self._incl_sourcecode = kwargs.get('include_source_code', True)
         """Should pages be generated for source code of modules?"""
 
         self._mark_docstrings = kwargs.get('mark_docstrings', False)

epydoc/src/epydoc/util.py

 
 def is_src_filename(filename):
     if not isinstance(filename, basestring): return False
-    return os.path.splitext(filename) in PY_SRC_EXTENSIONS
+    return os.path.splitext(filename)[1] in PY_SRC_EXTENSIONS
     
 def is_package_dir(dirname):
     """
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.