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

Unified Diff: tools/telemetry/third_party/gsutilz/third_party/retry-decorator/README.rst

Issue 1264873003: Add gsutil/third_party to telemetry/third_party/gsutilz/third_party. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove httplib2 Created 5 years, 5 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: tools/telemetry/third_party/gsutilz/third_party/retry-decorator/README.rst
diff --git a/tools/telemetry/third_party/gsutilz/third_party/retry-decorator/README.rst b/tools/telemetry/third_party/gsutilz/third_party/retry-decorator/README.rst
new file mode 100644
index 0000000000000000000000000000000000000000..4f8b9beb75003f9e411f8f4581be9fcd2e47700f
--- /dev/null
+++ b/tools/telemetry/third_party/gsutilz/third_party/retry-decorator/README.rst
@@ -0,0 +1,24 @@
+
+Usage
+-----
+
+Retry decorator
+
+::
+
+ #!/usr/bin/env python
+
+ from __future__ import print_function
+ from retry_decorator import *
+
+ @retry(Exception, tries = 3, timeout_secs = 0.1)
+ def test_retry():
+ import sys
+ print('hello', file = sys.stderr)
+ raise Exception('Testing retry')
+
+ if __name__ == '__main__':
+ try:
+ test_retry()
+ except Exception as e:
+ print('Received the last exception')

Powered by Google App Engine
This is Rietveld 408576698