Commit Graph

12 Commits

Author SHA1 Message Date
Adrian Buehlmann
996ab163f9 base85: cast Py_ssize_t values to int (issue3481)
If it outputs a nonsense value, no harm done, it was nonsense to start with.
2012-06-04 16:59:34 +02:00
Adrian Buehlmann
0583e3c14c base85: use Py_ssize_t for string lengths 2012-05-24 01:30:12 +02:00
Patrick Mezard
4076709ad5 patch: display a nice error for invalid base85 data
Before, import was terminating with a traceback. Now it says:

 $ hg import --no-commit ../bad.patch
 applying ../bad.patch
 abort: could not decode binary patch: bad base85 character at position 66
2012-04-21 19:58:18 +02:00
Martin Geisler
a76e121863 backout of e4cb9628354c
Matt and a majority of crew did not like this approach.
2011-01-27 11:15:08 +01:00
Martin Geisler
d23e1973c2 specify C indention style using Emacs file local variables 2011-01-26 12:05:01 +01:00
Renato Cunha
5d4023de29 base85.c: Added support for py3k.
This patch adds support for py3k in base85.c. This is accomplished by including
a header file responsible for abstracting the API differences between python 2
and python 3.
2010-06-15 19:49:56 -03:00
Matt Mackall
8d99be19f0 many, many trivial check-code fixups 2010-01-25 00:05:27 -06:00
Thomas Arendsen Hein
8999e196bc Some additional space/tab cleanups 2008-10-20 15:19:05 +02:00
Alexis S. L. Carvalho
216a9bb3ee python2.5 PyArg_ParseTuple fix
Python 2.5 doesn't like it when we mix str objects and the "t#" format
in PyArg_ParseTuple. Change it to use "s#". Tested with python 2.3, 2.4
and 2.5.
2006-10-12 14:04:11 -03:00
Brendan Cully
3f0262092f Support buffer interface in base85 codec 2006-10-11 09:27:57 -07:00
Brendan Cully
e57fb189fa Handle odd-sized base85 input and output 2006-10-07 16:21:33 -07:00
Brendan Cully
407377d02c Add a base85 codec 2006-10-06 13:01:54 -07:00