Patrick Mezard
742f6b3850
pure/base85: align exception type/msg on base85.c
...
brendan mentioned on IRC that b64decode raises a TypeError too, but while the
previous exception type may be better in general, it is much easier to make it
behave like the related C code and changes nothing for mercurial itself.
2012-05-07 21:49:45 +02:00
Matt Mackall
8d99be19f0
many, many trivial check-code fixups
2010-01-25 00:05:27 -06:00
Matt Mackall
595d66f424
Update license to GPLv2+
2010-01-19 22:20:08 -06:00
Alejandro Santos
3183e52503
compat: use // for integer division
2009-07-05 11:00:44 +02:00
Martin Geisler
5b4e5428df
replace "i in range(len(xs))" with "i, x in enumerate(xs)"
...
The remaining occurrences should be the ones where "xs" is mutated or
where "i" is used for index arithmetic.
2009-05-26 22:59:52 +02:00
Martin Geisler
750183bdad
updated license to be explicit about GPL version 2
2009-04-26 01:08:54 +02:00
Dirkjan Ochtman
7b5b0945c3
kill another trailing space
2009-03-23 13:49:16 +01:00
Mads Kiilerich
e39fe5275e
Optimization of pure.base85.b85encode
...
This makes pure python base85 encoding 3x faster than before. Now it is only
40x slower than the C version.
2009-03-04 23:23:59 +01:00
Brendan Cully
6cdf9dd11f
Pure python base85 fallback
...
Encoding takes about 100x longer than native on a large binary.
2008-12-30 18:58:58 -08:00