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

Side by Side Diff: third_party/google-endpoints/pyasn1/compat/binary.py

Issue 2666783008: Add google-endpoints to third_party/. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 from sys import version_info
2
3 if version_info[0:2] < (2, 6):
4 def bin(x):
5 if x <= 1:
6 return '0b'+str(x)
7 else:
8 return bin(x>>1) + str(x&1)
9 else:
10 bin = bin
OLDNEW
« no previous file with comments | « third_party/google-endpoints/pyasn1/compat/__init__.py ('k') | third_party/google-endpoints/pyasn1/compat/octets.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698