Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(970)

Unified Diff: chrome/common/extensions/docs/server2/docs_server_utils.py

Issue 10834130: Extensions Docs Server: Doc conversion script - SVN (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/docs_server_utils.py
===================================================================
--- chrome/common/extensions/docs/server2/docs_server_utils.py (revision 150606)
+++ chrome/common/extensions/docs/server2/docs_server_utils.py (working copy)
@@ -13,7 +13,7 @@
safe_key = key.replace('.', '_')
return safe_key + '.html'
-def SanitizeAPIName(name, api_path):
+def SanitizeAPIName(name, api_path=''):
"""Sanitizes API filenames that are in subdirectories.
"""
filename = os.path.splitext(name)[0][len(api_path):].replace('/', '_')

Powered by Google App Engine
This is Rietveld 408576698