Skip to content
Browse files

Minor cleanup.

  • Loading branch information...
1 parent 2fa38dd commit 83ab6d86f0818a2f06d5692307fb21e366d80c5b @aaugustin aaugustin committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 docs/utils.py
View
10 docs/utils.py
@@ -4,7 +4,7 @@
def get_doc_root(lang, version):
return Path(settings.DOCS_BUILD_ROOT).child(lang, version, "_build", "json")
-
+
def get_doc_root_or_404(lang, version):
docroot = get_doc_root(lang, version)
if not docroot.exists():
@@ -12,7 +12,7 @@ def get_doc_root_or_404(lang, version):
return docroot
def get_doc_path(docroot, subpath):
- # First look for <bits>/index.fpickle, then for <bits>.fpickle
+ # First look for <bits>/index.fjson, then for <bits>.fjson
bits = subpath.strip('/').split('/') + ['index.fjson']
doc = docroot.child(*bits)
if doc.exists():
@@ -22,11 +22,11 @@ def get_doc_path(docroot, subpath):
doc = docroot.child(*bits)
if doc.exists():
return doc
-
- return None
+
+ return None
def get_doc_path_or_404(docroot, subpath):
doc = get_doc_path(docroot, subpath)
if doc is None:
raise Http404(doc)
- return doc
+ return doc

0 comments on commit 83ab6d8

Please sign in to comment.
Something went wrong with that request. Please try again.