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

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

Issue 14883011: Switch from {...} to dict((...)) generator syntax. The former doesn't work in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/patched_file_system.py
diff --git a/chrome/common/extensions/docs/server2/patched_file_system.py b/chrome/common/extensions/docs/server2/patched_file_system.py
index f236d9fdeee0e5edd0e4b22e8e92ad02f2f69172..985f606e76436edb28f56388edb79a48697d97db 100644
--- a/chrome/common/extensions/docs/server2/patched_file_system.py
+++ b/chrome/common/extensions/docs/server2/patched_file_system.py
@@ -21,9 +21,9 @@ class _AsyncFetchFuture(object):
def Get(self):
files = self._unpatched_files_future.Get()
files.update(self._patched_files_future.Get())
- files.update({path: self._PatchDirectoryListing(path,
- self._dirs_value[path])
- for path in self._dirs_value})
+ files.update(
+ dict((path, self._PatchDirectoryListing(path, self._dirs_value[path]))
+ for path in self._dirs_value))
return files
def _PatchDirectoryListing(self, path, original_listing):

Powered by Google App Engine
This is Rietveld 408576698