26 lines
787 B
Diff
26 lines
787 B
Diff
# HG changeset patch
|
|
# User Augie Fackler <augie@google.com>
|
|
# Date 1571147553 14400
|
|
# Node ID be178b5d91c823cf91ed28f6f369b902d3e2cdec
|
|
# Parent 30570a056fa8396e6008e0ebb611ff3d7c020d22
|
|
dirs: tag a struct as not being formattable
|
|
|
|
Differential Revision: https://phab.mercurial-scm.org/D7103
|
|
|
|
diff -r 30570a056fa8 -r be178b5d91c8 mercurial/cext/dirs.c
|
|
--- a/mercurial/cext/dirs.c Wed Oct 02 14:38:34 2019 -0400
|
|
+++ b/mercurial/cext/dirs.c Tue Oct 15 09:52:33 2019 -0400
|
|
@@ -27,10 +27,12 @@
|
|
* We modify Python integers for refcounting, but those integers are
|
|
* never visible to Python code.
|
|
*/
|
|
+/* clang-format off */
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
PyObject *dict;
|
|
} dirsObject;
|
|
+/* clang-format on */
|
|
|
|
static inline Py_ssize_t _finddir(const char *path, Py_ssize_t pos)
|
|
{
|