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

Unified Diff: tools/telemetry/third_party/gsutil/third_party/pyasn1/pyasn1/compat/octets.py

Issue 1260493004: Revert "Add gsutil 4.13 to telemetry/third_party" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/gsutil/third_party/pyasn1/pyasn1/compat/octets.py
diff --git a/tools/telemetry/third_party/gsutil/third_party/pyasn1/pyasn1/compat/octets.py b/tools/telemetry/third_party/gsutil/third_party/pyasn1/pyasn1/compat/octets.py
deleted file mode 100644
index f7f2a29bf5617b2273dedd7134d7f9516c8137d3..0000000000000000000000000000000000000000
--- a/tools/telemetry/third_party/gsutil/third_party/pyasn1/pyasn1/compat/octets.py
+++ /dev/null
@@ -1,20 +0,0 @@
-from sys import version_info
-
-if version_info[0] <= 2:
- int2oct = chr
- ints2octs = lambda s: ''.join([ int2oct(x) for x in s ])
- null = ''
- oct2int = ord
- octs2ints = lambda s: [ oct2int(x) for x in s ]
- str2octs = lambda x: x
- octs2str = lambda x: x
- isOctetsType = lambda s: isinstance(s, str)
-else:
- ints2octs = bytes
- int2oct = lambda x: ints2octs((x,))
- null = ints2octs()
- oct2int = lambda x: x
- octs2ints = lambda s: [ x for x in s ]
- str2octs = lambda x: x.encode()
- octs2str = lambda x: x.decode()
- isOctetsType = lambda s: isinstance(s, bytes)

Powered by Google App Engine
This is Rietveld 408576698