Serhiy Storchaka
5cc9d32ee9
Issue #18011 : Silence an unrelated noise introduced in changeset 1b5ef05d6ced.
2013-05-28 15:42:34 +03:00
Serhiy Storchaka
77a3ad743f
Issue #18011 : base64.b32decode() now raises a binascii.Error if there are
...
non-alphabet characters present in the input string to conform a docstring.
Updated the module documentation.
2013-05-28 15:30:38 +03:00
Serhiy Storchaka
ea2b490f3d
Issue #18011 : base64.b32decode() now raises a binascii.Error if there are
...
non-alphabet characters present in the input string to conform a docstring.
Updated the module documentation.
2013-05-28 15:27:29 +03:00
Serhiy Storchaka
87aa7dc211
Issue #17812 : Fixed quadratic complexity of base64.b32encode().
...
Optimize base64.b32encode() and base64.b32decode() (speed up to 3x).
2013-05-19 11:49:32 +03:00
Serhiy Storchaka
2c3f2f19df
Issue #17812 : Fixed quadratic complexity of base64.b32encode().
2013-05-19 11:41:15 +03:00
Guido van Rossum
95c1c48fd6
Speed up base64.urlsafe_{en,de}code().
2012-06-22 15:16:09 -07:00
Antoine Pitrou
ea6b4d5f70
Issue #13641 : Decoding functions in the base64 module now accept ASCII-only unicode strings.
...
Patch by Catalin Iacob.
2012-02-20 19:30:23 +01:00
R. David Murray
6495136e40
#1466065 : add validate option to base64.b64decode
...
Patch by Neil Tallim. This provides a mechanism for module
users to achieve RFC 3548 compliance in the cases where ignoring
non-base64-alphabet input characters is *not* mandated by the RFC that
references RFC 3548.
2010-11-11 20:09:20 +00:00
Antoine Pitrou
b86680e299
Explicitly close some files (from issue #10093 )
2010-10-14 21:15:17 +00:00
Ezio Melotti
84befb00bd
Fix failure introduced in r83182.
2010-07-28 00:23:21 +00:00
Victor Stinner
479736b31c
Issue #4769 : Fix main() function of the base64 module, use sys.stdin.buffer and
...
sys.stdout.buffer (instead of sys.stdin and sys.stdout) to use the bytes API
2010-05-25 21:12:34 +00:00
Benjamin Peterson
90f5ba538b
convert shebang lines: python -> python3
2010-03-11 22:53:45 +00:00
Alexandre Vassalotti
5629268e9d
Make b64encode raises properly a TypeError when altchars is not bytes.
2009-06-29 01:13:41 +00:00
Georg Brandl
706824f19f
More codestring -> codebytes.
2009-06-04 09:42:55 +00:00
Georg Brandl
b54d801280
#3613 : add base64.encodebytes and decodebytes as the new spelling of encodestring and decodestring; deprecate the latter.
2009-06-04 09:11:51 +00:00
Antoine Pitrou
fd036451bf
#2834 : Change re module semantics, so that str and bytes mixing is forbidden,
...
and str (unicode) patterns get full unicode matching by default. The re.ASCII
flag is also introduced to ask for ASCII matching instead.
2008-08-19 17:56:33 +00:00
Alexandre Vassalotti
5209857f8e
Removed implicit convertions of str object to bytes from base64.
...
This also exposed some bugs in urlib2 and email.base64mime, which I
tried my best to fix. However, someone will probably have to double
check.
2008-05-03 04:39:38 +00:00
Guido van Rossum
254348e201
Rename buffer -> bytearray.
2007-11-21 19:29:53 +00:00
Guido van Rossum
98297ee781
Merging the py3k-pep3137 branch back into the py3k branch.
...
No detailed change log; just check out the change log for the py3k-pep3137
branch. The most obvious changes:
- str8 renamed to bytes (PyString at the C level);
- bytes renamed to buffer (PyBytes at the C level);
- PyString and PyUnicode are no longer compatible.
I.e. we now have an immutable bytes type and a mutable bytes type.
The behavior of PyString was modified quite a bit, to make it more
bytes-like. Some changes are still on the to-do list.
2007-11-06 21:34:58 +00:00
Guido van Rossum
083e20c8e1
Forgot one. This makes test_urllib2.py pass.
2007-08-29 02:30:49 +00:00
Guido van Rossum
54a40cb81f
Force test_xmlrpc to pass. I'm not happy with how I did this, but I don't
...
see a better way; the 'Binary' class is poorly specified so it's unclear
what behavior is relied upon.
2007-08-27 22:27:41 +00:00
Guido van Rossum
98b349f8e6
Fix some tests I broke. (More to follow.)
2007-08-27 21:47:52 +00:00
Guido van Rossum
09549f4407
Changes in anticipation of stricter str vs. bytes enforcement.
2007-08-27 20:40:10 +00:00
Guido van Rossum
4581ae5fa2
Make test_base64 pass.
...
Change binascii.Error to derive from ValueError
and raise binascii.Error everywhere where values are bad
(why on earth did the old code use TypeError?!?).
2007-05-22 21:56:47 +00:00
Guido van Rossum
cc2b016125
- PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;
...
and .keys(), .items(), .values() return dict views.
The dict views aren't fully functional yet; in particular, they can't
be compared to sets yet. but they are useful as "iterator wells".
There are still 27 failing unit tests; I expect that many of these
have fairly trivial fixes, but there are so many, I could use help.
2007-02-11 06:12:03 +00:00