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

Unified Diff: third_party/tlslite/tlslite/utils/compat.py

Issue 858373002: Update third_party/tlslite to 0.4.8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finish fixing client auth Created 5 years, 11 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 | « third_party/tlslite/tlslite/tlsrecordlayer.py ('k') | third_party/tlslite/tlslite/utils/cryptomath.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tlslite/tlslite/utils/compat.py
diff --git a/third_party/tlslite/tlslite/utils/compat.py b/third_party/tlslite/tlslite/utils/compat.py
index db95ac17f4ca0556aae87a1b8f19b2acc44b96be..124f6305edf40a741cf1439e5b967c3eb625a48d 100644
--- a/third_party/tlslite/tlslite/utils/compat.py
+++ b/third_party/tlslite/tlslite/utils/compat.py
@@ -45,15 +45,9 @@ if sys.version_info >= (3,0):
def b2a_base64(b):
return binascii.b2a_base64(b).decode("ascii")
- def b2a_base32(b):
- return base64.b32encode(b).decode("ascii")
-
def readStdinBinary():
return sys.stdin.buffer.read()
- def long(n):
- return n
-
else:
# Python 2.6 requires strings instead of bytearrays in a couple places,
# so we define this function so it does the conversion if needed.
@@ -86,9 +80,6 @@ else:
def b2a_base64(b):
return binascii.b2a_base64(compat26Str(b))
- def b2a_base32(b):
- return base64.b32encode(str(b))
-
import traceback
def formatExceptionTrace(e):
newStr = "".join(traceback.format_exception(sys.exc_type, sys.exc_value, sys.exc_traceback))
« no previous file with comments | « third_party/tlslite/tlslite/tlsrecordlayer.py ('k') | third_party/tlslite/tlslite/utils/cryptomath.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698