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

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

Issue 149513014: Docserver: Add FileSystem.Exists method and start sanity checking path format (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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
« no previous file with comments | « chrome/common/extensions/docs/server2/app.yaml ('k') | chrome/common/extensions/docs/server2/cron.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/appengine_url_fetcher.py
diff --git a/chrome/common/extensions/docs/server2/appengine_url_fetcher.py b/chrome/common/extensions/docs/server2/appengine_url_fetcher.py
index ccdf1566ece07a361de10160d61ef7f3d13c32f2..99496783351c3bafc51d4c7958d87b8c0112a9a1 100644
--- a/chrome/common/extensions/docs/server2/appengine_url_fetcher.py
+++ b/chrome/common/extensions/docs/server2/appengine_url_fetcher.py
@@ -33,7 +33,7 @@ class AppEngineUrlFetcher(object):
async fetches.
"""
def __init__(self, base_path=None):
- assert base_path is None or not base_path.endswith('/')
+ assert base_path is None or not base_path.endswith('/'), base_path
self._base_path = base_path
def Fetch(self, url, username=None, password=None):
@@ -52,7 +52,7 @@ class AppEngineUrlFetcher(object):
return Future(delegate=_AsyncFetchDelegate(rpc))
def _FromBasePath(self, url):
- assert not url.startswith('/')
+ assert not url.startswith('/'), url
if self._base_path is not None:
url = posixpath.join(self._base_path, url) if url else self._base_path
return url
« no previous file with comments | « chrome/common/extensions/docs/server2/app.yaml ('k') | chrome/common/extensions/docs/server2/cron.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698