Show More
@@ -1,6 +1,5 b'' | |||||
1 | # Files that just need to be migrated to the formatter. |
|
1 | # Files that just need to be migrated to the formatter. | |
2 | # Do not add new files here! |
|
2 | # Do not add new files here! | |
3 | mercurial/cext/base85.c |
|
|||
4 | mercurial/cext/dirs.c |
|
3 | mercurial/cext/dirs.c | |
5 | mercurial/cext/manifest.c |
|
4 | mercurial/cext/manifest.c | |
6 | mercurial/cext/mpatch.c |
|
5 | mercurial/cext/mpatch.c |
@@ -14,7 +14,8 b'' | |||||
14 |
|
14 | |||
15 | #include "util.h" |
|
15 | #include "util.h" | |
16 |
|
16 | |||
17 |
static const char b85chars[] = |
|
17 | static const char b85chars[] = | |
|
18 | "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |||
18 |
|
|
19 | "abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"; | |
19 | static char b85dec[256]; |
|
20 | static char b85dec[256]; | |
20 |
|
21 | |||
@@ -150,18 +151,14 b' static PyMethodDef methods[] = {' | |||||
150 |
|
|
151 | "If the second parameter is true, pad the result to a multiple of " | |
151 |
|
|
152 | "five characters.\n"}, | |
152 |
|
|
153 | {"b85decode", b85decode, METH_VARARGS, "Decode base85 text.\n"}, | |
153 |
|
|
154 | {NULL, NULL}, | |
154 | }; |
|
155 | }; | |
155 |
|
156 | |||
156 | static const int version = 1; |
|
157 | static const int version = 1; | |
157 |
|
158 | |||
158 | #ifdef IS_PY3K |
|
159 | #ifdef IS_PY3K | |
159 | static struct PyModuleDef base85_module = { |
|
160 | static struct PyModuleDef base85_module = { | |
160 | PyModuleDef_HEAD_INIT, |
|
161 | PyModuleDef_HEAD_INIT, "base85", base85_doc, -1, methods, | |
161 | "base85", |
|
|||
162 | base85_doc, |
|
|||
163 | -1, |
|
|||
164 | methods |
|
|||
165 | }; |
|
162 | }; | |
166 |
|
163 | |||
167 | PyMODINIT_FUNC PyInit_base85(void) |
|
164 | PyMODINIT_FUNC PyInit_base85(void) |
General Comments 0
You need to be logged in to leave comments.
Login now