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

Unified Diff: breakpad.py

Issue 8121001: Add a unit test to breakpad. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Fix for python 2.6 Created 9 years, 2 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 | « no previous file | tests/breakpad_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: breakpad.py
diff --git a/breakpad.py b/breakpad.py
index ee759f9ceaab80bbd71f7a863601a885cab61e85..afe469c6c5128b3d3a4dce08609bb4c66c49e5f5 100644
--- a/breakpad.py
+++ b/breakpad.py
@@ -89,8 +89,8 @@ def SendStack(last_tb, stack, url=None, maxlen=50):
'version': sys.version,
}
# pylint: disable=W0702
- print('\n'.join(' %s: %s' % (k, v[0:maxlen])
- for k, v in params.iteritems()))
+ print('\n'.join(' %s: %s' % (k, params[k][0:maxlen])
+ for k in sorted(params)))
print(post(url, params))
except IOError:
print('There was a failure while trying to send the stack trace. Too bad.')
« no previous file with comments | « no previous file | tests/breakpad_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698