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

Unified Diff: chrome/common/extensions/docs/server2/test_patcher.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
« no previous file with comments | « chrome/common/extensions/docs/server2/patched_file_system.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/test_patcher.py
diff --git a/chrome/common/extensions/docs/server2/test_patcher.py b/chrome/common/extensions/docs/server2/test_patcher.py
index faa491fae07218d08e1f179f91aa407b144afbc0..e1516af0cb728aec392d6d615b8f1a7e5c99411c 100644
--- a/chrome/common/extensions/docs/server2/test_patcher.py
+++ b/chrome/common/extensions/docs/server2/test_patcher.py
@@ -29,6 +29,7 @@ class TestPatcher(Patcher):
assert binary
self.apply_count += 1
try:
- return Future(value={path: self._patch_data[path] for path in paths})
+ return Future(value=dict((path, self._patch_data[path])
+ for path in paths))
except KeyError:
raise FileNotFoundError('One of %s is deleted in the patch.' % paths)
« no previous file with comments | « chrome/common/extensions/docs/server2/patched_file_system.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698