Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(17937)

Delta Between Two Patch Sets: Lib/base64.py

Issue 25357: Add an optional newline parameter to binascii.b2a_base64() to not add a newline
Left Patch Set: Created 4 years ago
Right Patch Set: Created 4 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 #! /usr/bin/env python3 1 #! /usr/bin/env python3
2 2
3 """Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings""" 3 """Base16, Base32, Base64 (RFC 3548), Base85 and Ascii85 data encodings"""
4 4
5 # Modified 04-Oct-1995 by Jack Jansen to use binascii module 5 # Modified 04-Oct-1995 by Jack Jansen to use binascii module
6 # Modified 30-Dec-2003 by Barry Warsaw to add full RFC 3548 support 6 # Modified 30-Dec-2003 by Barry Warsaw to add full RFC 3548 support
7 # Modified 22-May-2007 by Guido van Rossum to use bytes everywhere 7 # Modified 22-May-2007 by Guido van Rossum to use bytes everywhere
8 8
9 import re 9 import re
10 import struct 10 import struct
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 print(repr(s0)) 592 print(repr(s0))
593 s1 = encodebytes(s0) 593 s1 = encodebytes(s0)
594 print(repr(s1)) 594 print(repr(s1))
595 s2 = decodebytes(s1) 595 s2 = decodebytes(s1)
596 print(repr(s2)) 596 print(repr(s2))
597 assert s0 == s2 597 assert s0 == s2
598 598
599 599
600 if __name__ == '__main__': 600 if __name__ == '__main__':
601 main() 601 main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+